]> git.baikalelectronics.ru Git - kernel.git/commit
storvsc: Set the error code correctly in failure conditions
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 13 Aug 2015 15:43:52 +0000 (08:43 -0700)
committerJames Bottomley <JBottomley@Odin.com>
Thu, 27 Aug 2015 05:41:36 +0000 (22:41 -0700)
commit6cb19220d869eefb73982b71dee051e4696d06b7
tree27d004a4ab23192901e9a85aeb550f9ebfe0ce02
parent5d1f6d70044bd71b1975f89480f38be704094e57
storvsc: Set the error code correctly in failure conditions

In the function storvsc_channel_init(), error code was not getting
set correctly in some of the failure cases. Fix this issue.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/storvsc_drv.c