summaryrefslogtreecommitdiff
path: root/drivers/android
diff options
context:
space:
mode:
authorSinclair Yeh <syeh@vmware.com>2017-06-02 07:50:57 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-14 13:16:25 +0200
commit74276868b45585f77eae2372c95e016aacfd0d3c (patch)
tree21e695c50d32ad69652ed8a32cfe6b112887d697 /drivers/android
parent619cc02fd85d69270c95e7db320b305e975aae00 (diff)
drm/vmwgfx: Make sure backup_handle is always valid
commit 07678eca2cf9c9a18584e546c2b2a0d0c9a3150c upstream. When vmw_gb_surface_define_ioctl() is called with an existing buffer, we end up returning an uninitialized variable in the backup_handle. The fix is to first initialize backup_handle to 0 just to be sure, and second, when a user-provided buffer is found, we will use the req->buffer_handle as the backup_handle. Reported-by: Murray McAllister <murray.mcallister@insomniasec.com> Signed-off-by: Sinclair Yeh <syeh@vmware.com> Reviewed-by: Deepak Rawat <drawat@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android')
0 files changed, 0 insertions, 0 deletions