aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorGabriel Knezek <[email protected]>2021-06-21 22:28:59 +0000
committerBartosz Golaszewski <[email protected]>2021-06-22 07:54:13 +0000
commitcb8f63b8cbf39845244f3ccae43bb7e63bd70543 (patch)
tree1b6267bdc7e0e75bdb730ed75276077e7c458941 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentgpio: mxc: Fix disabled interrupt wake-up support (diff)
downloadkernel-cb8f63b8cbf39845244f3ccae43bb7e63bd70543.tar.gz
kernel-cb8f63b8cbf39845244f3ccae43bb7e63bd70543.zip
gpiolib: cdev: zero padding during conversion to gpioline_info_changed
When userspace requests a GPIO v1 line info changed event, lineinfo_watch_read() populates and returns the gpioline_info_changed structure. It contains 5 words of padding at the end which are not initialized before being returned to userspace. Zero the structure in gpio_v2_line_info_change_to_v1() before populating its contents. Fixes: aad955842d1c ("gpiolib: cdev: support GPIO_V2_GET_LINEINFO_IOCTL and GPIO_V2_GET_LINEINFO_WATCH_IOCTL") Signed-off-by: Gabriel Knezek <[email protected]> Reviewed-by: Kent Gibson <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions