rsxx: enable error return of rsxx_eeh_save_issued_dmas()
authorPhilip J Kelleher <pjk1939@linux.vnet.ibm.com>
Tue, 26 Mar 2013 16:03:07 +0000 (11:03 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Mar 2013 20:48:11 +0000 (14:48 -0600)
commit4dcaf47258d59010802bd0eda933f69ee7d98cc7
treeb1787a3dcdd4a1ce5d59d0ba0ccff811fc30f268
parentd8d595dfce7925627de78b9eecc8598a6ffda610
rsxx: enable error return of rsxx_eeh_save_issued_dmas()

Commit d8d595df introduced a bug where we did not check for a NULL
return from kmalloc(). Make rsxx_eeh_save_issued_dmas() return an
error for that case, and make the callers handle that.

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