linux/drivers/gpu
Dan Carpenter a02ac12d2d drm: return -EFAULT if copy_to_user() fails
[ Upstream commit 74b67efa8d ]

The copy_from_user() function returns the number of bytes remaining
to be copied but we want to return a negative error code.  Otherwise
the callers treat it as a successful copy.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190618131843.GA29463@mwanda
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-07-14 08:11:14 +02:00
..
drm drm: return -EFAULT if copy_to_user() fails 2019-07-14 08:11:14 +02:00
host1x gpu: host1x: Check whether size of unpin isn't 0 2018-07-09 10:31:30 +02:00
ipu-v3 gpu: ipu-v3: dp: fix CSC handling 2019-05-16 19:41:24 +02:00
vga vga_switcheroo: Fix missing gpu_bound call at audio client registration 2018-11-13 11:09:00 -08:00
Makefile