]> 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)
commit5d40581129eabe466236e4f64dac7a08a67685ac
tree9ad6126ed0a65c5240c63fc424669d04b6876ac0
parentb9cdeb033d3924c223bafccb5c76c3a744974ffd
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