From: Alexey Khoroshilov Date: Fri, 28 Feb 2014 21:20:18 +0000 (+0400) Subject: drm/vmwgfx: avoid null pointer dereference at failure paths X-Git-Tag: v3.14-rc5~1^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6950e23e54b1c94abf8c60c1ddfac79133d41de2;p=pandora-kernel.git 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 Reviewed-by: Thomas Hellstrom --- Reading git-diff-tree failed