Please sign in to comment.
drm/vmwgfx: Make sure backup_handle is always valid
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. Cc: <firstname.lastname@example.org> Reported-by: Murray McAllister <email@example.com> Signed-off-by: Sinclair Yeh <firstname.lastname@example.org> Reviewed-by: Deepak Rawat <email@example.com>
- Loading branch information...
Showing with 11 additions and 7 deletions.