]> git.baikalelectronics.ru Git - kernel.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)
committerDave Airlie <airlied@redhat.com>
Tue, 8 Nov 2011 10:50:36 +0000 (10:50 +0000)
commit25f7bfbeac1e8f6b1db24845ea497a22e99cdc9d
tree98dde39f1a4110fd63b3690148c9294d8bf871d4
parent443630089fde8004f40c5b066416bccb005af22c
drm/i915: Fix object refcount leak on mmappable size limit error path.

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>
Cc: stable@kernel.org
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/i915_gem.c