]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4eaf4e016dfce7659d6bc964b1ae2660f71eb9f5
treee485def24cc1bb323fa8916d4c9af790caf52922
parentb66df146f2440e4e98530ea48434159711d125fe
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