parisc: perf: return -EFAULT on error
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 10 Dec 2016 09:06:25 +0000 (12:06 +0300)
committerHelge Deller <deller@gmx.de>
Mon, 12 Dec 2016 21:29:49 +0000 (22:29 +0100)
commit82cbd568bc5aa4c70f2a694f169d39ddef3b1aba
tree43ab29e0d4c9809724600db8b7dc0033c84fb52f
parent637250cc8f5e2bfc5c3a96802d1d96b4987a1d62
parisc: perf: return -EFAULT on error

The copy_from_user() returns the number of bytes remaining to be copied
but we want to return -EFAULT if it's non-zero.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/perf.c