]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: avoid null pointer dereference at failure paths
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 28 Feb 2014 21:20:18 +0000 (01:20 +0400)
committerThomas Hellstrom <thellstrom@vmware.com>
Sun, 2 Mar 2014 08:49:59 +0000 (09:49 +0100)
commitb9eadde3cc9e8ff7a4dff942f23a5b649dbbc9d7
tree47bc913f53068c5f33a867fce9a0251544766aad
parent9288808d8025fff16d656747b6677555b3199410
drm/vmwgfx: avoid null pointer dereference at failure paths

vmw_takedown_otable_base() and vmw_mob_unbind() check for
potential vmw_fifo_reserve() failure and print error message,
but then immediately dereference NULL pointer.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_mob.c