]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libiscsi: Fix error count for active session
authorWu Bo <wubo40@huawei.com>
Wed, 25 Mar 2020 06:53:25 +0000 (06:53 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 27 Mar 2020 02:48:58 +0000 (22:48 -0400)
commit29fcd0bc02ed9f726f2331da371843ac59bb4b51
treeb7602fc64666f509dad556bd5e5b0058a3bcc11c
parent00ddfb352767c47fe94ce5b483a7fd1ec3e16a87
scsi: libiscsi: Fix error count for active session

Fix an error count for active session if the total_cmds is invalid on the
function iscsi_session_setup().  Decrement the number of active sessions
before the funcion return.

Link: https://lore.kernel.org/r/EDBAAA0BBBA2AC4E9C8B6B81DEEE1D6916A28542@DGGEML525-MBS.china.huawei.com
Reviewed-by: Lee Duncan <lduncan@suuse.com>
Signed-off-by: Wu Bo <wubo40@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libiscsi.c