xen/privcmd: Fix mmap batch ioctl error status copy back.
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 6 Sep 2012 17:24:39 +0000 (13:24 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 6 Sep 2012 20:14:36 +0000 (16:14 -0400)
commit1714df7f2cee6a741c3ed24231ec5db25b90633a
treee86ef69a2568aae9ef0033fdb53f2cde738db9d8
parentceb90fa0a8008059ecbbf9114cb89dc71a730bb6
xen/privcmd: Fix mmap batch ioctl error status copy back.

Copy back of per-slot error codes is only necessary for V2. V1 does not provide
an error array, so copyback will unconditionally set the global rc to EFAULT.
Only copyback for V2.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/privcmd.c