]> git.baikalelectronics.ru Git - kernel.git/commit
cciss: handle allocation failure
authorDan Carpenter <error27@gmail.com>
Mon, 23 Aug 2010 10:28:15 +0000 (12:28 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 23 Aug 2010 10:28:15 +0000 (12:28 +0200)
commit59309b8ba9f24a1158be24368ad495616c0e070a
tree1e249690aeb31a8d30e22e7db26eb9331a88c08b
parent36203883f975638bff9a954ff780f3ccedaa7f3c
cciss: handle allocation failure

If kmalloc() fails then cleanup and return failure (-1).

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/block/cciss.c