rsxx: Handling failed pci_map_page on PowerPC and double free.
authorPhilip J Kelleher <pjk1939@linux.vnet.ibm.com>
Wed, 4 Sep 2013 18:59:02 +0000 (13:59 -0500)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Nov 2013 16:10:28 +0000 (09:10 -0700)
commite5feab229f199dadee91073fbef5b507046086fd
treea5a5f75cd2ad53ecda8a9e2b3e95046e119be148
parentef7e7c82e02b602f29c2b87f42dcd6143a6777da
rsxx: Handling failed pci_map_page on PowerPC and double free.

The rsxx driver was not checking the correct value during a
pci_map_page failure. Fixing this also uncovered a
double free if the bio was returned before it was
broken up into indiviadual 4k dmas, that is also
fixed here.

Signed-off-by: Philip J Kelleher <pjk1939@linux.vnet.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rsxx/core.c
drivers/block/rsxx/dma.c
drivers/block/rsxx/rsxx_priv.h