[PATCH] drm, i915: Fix memory leak in i915_gem_busy_ioctl().
rakib.mullick at gmail.com
Fri Nov 25 20:44:17 PST 2011
On Mon, Nov 21, 2011 at 11:16 PM, Keith Packard <keithp at keithp.com> wrote:
> On Mon, 21 Nov 2011 17:23:06 +0100, Daniel Vetter <daniel at ffwll.ch> wrote:
>> Indeed, nice catch (albeit totally unlikely to be hit, because the error
>> only happens when the gpu ceases to progress in the ring, so imo not
>> stable material). Keith, please pick this up for fixes, thanks.
> It's already there and queued for airlied :-)
Thank you guys for reviewing and taking the patch.
Now, while I was looking at the uses of i915_add_request(), I found
the following code :
ret = i915_gem_flush_ring(ring, 0,
request = kzalloc(sizeof(*request), GFP_KERNEL);
if (ret || request == NULL ||
i915_add_request(ring, NULL, request))
More information about the dri-devel