The assignment of handle in vmw_framebuffer_create_handle doesn't actually do anything useful and is incorrectly assigning an integer value to a pointer argument. It appears that this is a typo and should be dereferencing handle rather than assigning to it directly. This fixes a bug where an undefined handle value is potentially returned to user-space.
Signed-off-by: Ryan Mallon <[email protected]>
Reviewed-by: Jakob Bornecrantz<[email protected]>
Cc: [email protected]
Signed-off-by: Dave Airlie <[email protected]>
unsigned int *handle)
{
if (handle)
- handle = 0;
+ *handle = 0;
return 0;
}