/[packages]/cauldron/kernel/current/PATCHES/patches/stable-drm-i915-release-object-along-create-user-fb-error-path.patch |
Parent Directory | Revision Log
- merge current stable queue: cifs: change bleft in decode_unicode_ssetup back to signed type cifs: check for bytes_remaining going to zero in CIFS_SessSetup cifs: handle errors from coalesce_t2 cifs: refactor mid finding loop in cifs_demultiplex_thread cifs: sanitize length checking in coalesce_t2 drm/radeon/kms: add pci id to acer travelmate quirk for 5730 drm/radeon/kms: fix gart setup on fusion parts (v2) backport drm/i915/dp: Be paranoid in case we disable a DP before it is attached drm/i915/lvds: Only act on lid notify when the device is on drm/i915: Release object along create user fb error path efi: Validate size of EFI GUID partition entries hw_breakpoints, powerpc: Fix CONFIG_HAVE_HW_BREAKPOINT off-case in ptrace_set_debugreg() iwlwifi: add {ack, plpc}_check module parameters ptrace: Prepare to fix racy accesses on task breakpoints thinkpad-acpi: module autoloading for newer Lenovo ThinkPads vm: Don't lock guardpage if the stack is growing up vm: fix vm_pgoff wrap in upward expansion x86, hw_breakpoints: Fix racy access to ptrace breakpoints
1 | From 2dd251f0a294300a1cf8f4b63768145fa6153c4d Mon Sep 17 00:00:00 2001 |
2 | From: Chris Wilson <chris@chris-wilson.co.uk> |
3 | Date: Sat, 16 Apr 2011 10:23:51 +0100 |
4 | Subject: drm/i915: Release object along create user fb error path |
5 | |
6 | From: Chris Wilson <chris@chris-wilson.co.uk> |
7 | |
8 | commit 2dd251f0a294300a1cf8f4b63768145fa6153c4d upstream. |
9 | |
10 | Reported-by: Alan Cox <alan@linux.intel.com> |
11 | Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> |
12 | Signed-off-by: Keith Packard <keithp@keithp.com> |
13 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
14 | |
15 | --- |
16 | drivers/gpu/drm/i915/intel_display.c | 4 +++- |
17 | 1 file changed, 3 insertions(+), 1 deletion(-) |
18 | |
19 | --- a/drivers/gpu/drm/i915/intel_display.c |
20 | +++ b/drivers/gpu/drm/i915/intel_display.c |
21 | @@ -6005,8 +6005,10 @@ intel_user_framebuffer_create(struct drm |
22 | return ERR_PTR(-ENOENT); |
23 | |
24 | intel_fb = kzalloc(sizeof(*intel_fb), GFP_KERNEL); |
25 | - if (!intel_fb) |
26 | + if (!intel_fb) { |
27 | + drm_gem_object_unreference_unlocked(&obj->base); |
28 | return ERR_PTR(-ENOMEM); |
29 | + } |
30 | |
31 | ret = intel_framebuffer_init(dev, intel_fb, mode_cmd, obj); |
32 | if (ret) { |
ViewVC Help | |
Powered by ViewVC 1.1.30 |