[PATCH] drm/vmwgfx: avoid null pointer dereference at failure paths

2014-03-01 Thread Thomas Hellstrom
On 02/28/2014 10:20 PM, Alexey Khoroshilov wrote: > 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). > > Sign

[PATCH] drm/vmwgfx: avoid null pointer dereference at failure paths

2014-03-01 Thread Alexey Khoroshilov
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 --- drivers/gpu/drm/vmwgfx/vmwg