Skip to content

Commit 4b1c079

Browse files
hreineckemartinkpetersen
authored andcommitted
scsi: message: fusion: Initialize return value in mptfc_bus_reset()
Detected by smatch. Fixes: 17865dc ("scsi: message: fusion: Open-code mptfc_block_error_handler() for bus reset") Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Hannes Reinecke <hare@suse.de> Link: https://lore.kernel.org/r/20231023073005.20766-1-hare@suse.de Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 3c97849 commit 4b1c079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/message/fusion/mptfc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ mptfc_bus_reset(struct scsi_cmnd *SCpnt)
265265
MPT_SCSI_HOST __maybe_unused *hd = shost_priv(shost);
266266
int channel = SCpnt->device->channel;
267267
struct mptfc_rport_info *ri;
268-
int rtn;
268+
int rtn = FAILED;
269269

270270
list_for_each_entry(ri, &hd->ioc->fc_rports, list) {
271271
if (ri->flags & MPT_RPORT_INFO_FLAGS_REGISTERED) {

0 commit comments

Comments
 (0)