]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915: Fix object refcount leak on mmappable size limit error path.
authorEric Anholt <eric@anholt.net>
Tue, 1 Nov 2011 06:16:21 +0000 (23:16 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:18:50 +0000 (11:18 -0800)
commit43581d643cd7d05197985c43192c620fc274ca35
tree0a9cc1a14a471d5daf84c0130d17731859c65446
parentda1d70e0627d772d3690f7b70adf4f28464b2d5a
drm/i915: Fix object refcount leak on mmappable size limit error path.

commit 14660ccd599dc7bd6ecef17408bd76dc853f9b77 upstream.

I've been seeing memory leaks on my system in the form of large
(300-400MB) GEM objects created by now-dead processes laying around
clogging up memory.  I usually notice when it gets to about 1.2GB of
them.  Hopefully this clears up the issue, but I just found this bug
by inspection.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/i915_gem.c