]> git.baikalelectronics.ru Git - kernel.git/commit
vmwgfx: Fix unitialized stack read in vmw_setup_otable_base
authorDave Jones <davej@redhat.com>
Fri, 31 Jan 2014 02:27:25 +0000 (21:27 -0500)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 5 Feb 2014 07:52:34 +0000 (08:52 +0100)
commit987b8392b5910c26f0d41b492c6930e43dc99c61
tree9ad6126ed0a65c5240c63fc424669d04b6876ac0
parenta6acee5506737b8781557c4e0b784d667dadedad
vmwgfx: Fix unitialized stack read in vmw_setup_otable_base

One of the error paths in vmw_setup_otable_base causes us to return with
'ret' having never been set to anything causing us to return whatever was
on the stack.

Found with Coverity

Signed-off-by: Dave Jones <davej@fedoraproject.org>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_mob.c