diff options
author | Murray McAllister <murray.mcallister@insomniasec.com> | 2017-03-27 12:12:53 +0300 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2017-03-30 12:43:23 +0300 |
commit | 36274ab8c596f1240c606bb514da329add2a1bcd (patch) | |
tree | 66420861d31f36707f6f7822804fbb399ccb81ca /drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | |
parent | f7652afa8eadb416b23eb57dec6f158529942041 (diff) | |
download | linux-36274ab8c596f1240c606bb514da329add2a1bcd.tar.xz |
drm/vmwgfx: NULL pointer dereference in vmw_surface_define_ioctl()
Before memory allocations vmw_surface_define_ioctl() checks the
upper-bounds of a user-supplied size, but does not check if the
supplied size is 0.
Add check to avoid NULL pointer dereferences.
Cc: <stable@vger.kernel.org>
Signed-off-by: Murray McAllister <murray.mcallister@insomniasec.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c')
0 files changed, 0 insertions, 0 deletions