]> git.baikalelectronics.ru Git - kernel.git/commit
csiostor: fix an error code in csio_hw_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Apr 2015 14:32:19 +0000 (17:32 +0300)
committerJames Bottomley <JBottomley@Odin.com>
Mon, 25 May 2015 15:46:26 +0000 (08:46 -0700)
commitae300443285d7265b7a8339c9b51d84dc94e408e
treef6795dac78f84e34514d72221f4d2d940e94dc45
parent9d1362f4ba5cec3b7d2503a7ae335360b51c42cf
csiostor: fix an error code in csio_hw_init()

We should return -ENOMEM if kzalloc() fails here instead of returning
success.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/csiostor/csio_hw.c