drm/amdkfd: Do copy_to/from_user in general kfd_ioctl()
authorOded Gabbay <oded.gabbay@amd.com>
Mon, 29 Dec 2014 11:52:22 +0000 (13:52 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Tue, 6 Jan 2015 17:44:26 +0000 (19:44 +0200)
commit524a640444ae19593dd4e9e80075041c1ed831bd
treee485def24cc1bb323fa8916d4c9af790caf52922
parent2030664b709caa769f2b6a1d2e71d8cb343c6884
drm/amdkfd: Do copy_to/from_user in general kfd_ioctl()

This patch moves the copy_to_user() and copy_from_user() calls from the
different ioctl functions in amdkfd to the general kfd_ioctl() function, as
this is a common code for all ioctls.

This was done according to example taken from drm_ioctl.c

Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c