Pan Bian
8bf793883d
drm/amdkfd: fix improper return value on error
...
In function kfd_wait_on_events(), when the call to copy_from_user()
fails, the value of return variable ret is 0. 0 indicates success, which
is inconsistent with the execution status. This patch fixes the bug by
assigning "-EFAULT" to ret when copy_from_user() returns an unexpected
value.
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
2017-01-16 17:34:47 +02:00
..
2015-05-19 13:02:28 +03:00
2015-05-19 13:02:28 +03:00
2015-07-20 09:16:49 +03:00
2015-07-20 09:16:48 +03:00
2017-01-12 09:53:03 +02:00
2016-03-15 14:09:37 +02:00
2015-06-06 20:48:34 +03:00
2015-06-03 11:33:06 +03:00
2015-06-03 11:33:06 +03:00
2015-07-30 09:26:15 +03:00
2015-07-30 09:26:15 +03:00
2016-05-01 00:06:27 +10:00
2016-06-21 21:32:52 +02:00
2015-07-20 09:16:48 +03:00
2016-09-28 12:08:49 +10:00
2017-01-16 17:34:47 +02:00
2015-05-19 13:02:28 +03:00
2015-08-30 12:36:58 +03:00
2015-05-19 13:02:26 +03:00
2014-12-02 16:38:57 +02:00
2014-12-02 16:38:57 +02:00
2016-09-19 20:58:35 +03:00
2015-01-15 12:07:48 +02:00
2016-02-27 22:52:40 +02:00
2015-07-20 09:16:49 +03:00
2015-07-20 09:16:48 +03:00
2015-01-04 11:24:25 +02:00
2014-07-17 00:36:17 +03:00
2016-05-01 00:06:28 +10:00
2015-01-18 13:18:01 +02:00
2015-06-03 11:32:28 +03:00
2015-07-20 09:16:48 +03:00
2015-06-03 11:32:28 +03:00
2014-07-17 00:45:35 +03:00
2016-09-19 20:58:35 +03:00
2016-09-19 20:58:35 +03:00
2016-09-19 20:58:35 +03:00
2016-09-19 20:58:35 +03:00
2016-09-19 20:58:35 +03:00
2015-07-20 09:16:49 +03:00
2015-07-20 09:16:48 +03:00