summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2012-06-12 13:28:42 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-17 11:21:24 -0700
commite82c95f9f0cb025da8e1af6df1c29080a78d0f84 (patch)
tree2c4b9ff3e19e1786fab109c36ec62817591d0006 /fs
parentcc62e8bf1f779a54369e71e665211140a254df5c (diff)
drm/ttm: Fix buffer object metadata accounting regression v2
commit a393c730ab69617c3291a3b0b2a228c9be2fc28c upstream. A regression was introduced in the 3.3 rc series, commit "drm/ttm: simplify memory accounting for ttm user v2", causing the metadata of buffer objects created using the ttm_bo_create() function to be accounted twice. That causes massive leaks with the vmwgfx driver running for example SpecViewperf Catia-03 test 2, eventually killing the app. Furthermore, the same commit introduces a regression where metadata accounting is leaked if a buffer object is initialized with an illegal size. This is also fixed with this commit. v2: Fixed an error path and removed an unused variable. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Cc: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions