]> git.baikalelectronics.ru Git - kernel.git/commit
xen/privcmd: Fix mmap batch ioctl.
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Tue, 15 Jan 2013 03:35:40 +0000 (22:35 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 15 Jan 2013 21:00:52 +0000 (16:00 -0500)
commit621854108c1cba3e2d61cd3849a11fef42ddd972
treefa508d4649e0046b318221254fb2c496ca51e818
parentc1c218a00c3f5548a456597dc99bd389083ea963
xen/privcmd: Fix mmap batch ioctl.

1. If any individual mapping error happens, the V1 case will mark *all*
operations as failed. Fixed.

2. The err_array was allocated with kcalloc, resulting in potentially O(n) page
allocations. Refactor code to not use this array.

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