Commit 13a6a971 authored by Murray McAllister's avatar Murray McAllister Committed by Jiri Slaby
Browse files

drm/vmwgfx: NULL pointer dereference in vmw_surface_define_ioctl()



commit 36274ab8 upstream.

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.

Signed-off-by: default avatarMurray McAllister <murray.mcallister@insomniasec.com>
Reviewed-by: default avatarSinclair Yeh <syeh@vmware.com>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent ef474b44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment