]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mpi3mr: Return proper values for failures in firmware init path
authorRanjan Kumar <ranjan.kumar@broadcom.com>
Tue, 28 Feb 2023 14:08:33 +0000 (06:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:41 +0000 (13:33 +0100)
commit5abca1af07b70bf43d4ba1460bd198331f938783
tree0317d6f85a81a216a790f734bb9830d2dc8501b9
parenteaae8aa0462fc729b48e8cec161f16b8242babc0
scsi: mpi3mr: Return proper values for failures in firmware init path

[ Upstream commit fb7a5386e877c1101b0830deb22dd3485b5525ca ]

Return proper non-zero return values for all the cases when the controller
initialization and re-initialization fails.

Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com>
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Link: https://lore.kernel.org/r/20230228140835.4075-5-ranjan.kumar@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Stable-dep-of: af4c932af546 ("scsi: mpi3mr: Fix memory leaks in mpi3mr_init_ioc()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/mpi3mr/mpi3mr_fw.c