xen/privcmd: return -EFAULT on error
authorDan Carpenter <[email protected]>
Sat, 8 Sep 2012 09:57:35 +0000 (12:57 +0300)
committerKonrad Rzeszutek Wilk <[email protected]>
Mon, 10 Sep 2012 19:34:56 +0000 (15:34 -0400)
commit9d2be9287107695708e6aae5105a8a518a6cb4d0
tree29a653d6354535842cae3c515211a5bf37da1f6b
parent1714df7f2cee6a741c3ed24231ec5db25b90633a
xen/privcmd: return -EFAULT on error

__copy_to_user() returns the number of bytes remaining to be copied but
we want to return a negative error code here.

Acked-by: Andres Lagar-Cavilla <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
drivers/xen/privcmd.c