]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitcd9a21a831af0af7539a0e37e4455da03df7cf82
tree9ad6126ed0a65c5240c63fc424669d04b6876ac0
parent30f82d816d2dccfdc2063ac8cca994904c9b612c
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