From: Miaoqian Lin <linmq006@gmail.com>
To: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
Hyunchul Lee <hyc.lee@gmail.com>,
Sergey Senozhatsky <sergey.senozhatsky@gmail.com>,
Ronnie Sahlberg <lsahlber@redhat.com>,
Namjae Jeon <namjae.jeon@samsung.com>,
Steve French <stfrench@microsoft.com>,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: linmq006@gmail.com
Subject: [PATCH] scsi: gvp11: Fix error path after scsi_host_alloc
Date: Tue, 18 Mar 2025 21:05:31 +0800 [thread overview]
Message-ID: <20250318130532.11546-1-linmq006@gmail.com> (raw)
Fix error path after scsi_host_alloc() by using fail_irq label instead of
fail_check_or_alloc when dma_set_mask_and_coherent() fails. This ensures
proper cleanup of allocated resources by calling scsi_host_put().
Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
---
drivers/scsi/gvp11.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/gvp11.c b/drivers/scsi/gvp11.c
index 0420bfe9bd42..272ea2d1c8fd 100644
--- a/drivers/scsi/gvp11.c
+++ b/drivers/scsi/gvp11.c
@@ -381,7 +381,7 @@ static int gvp11_probe(struct zorro_dev *z, const struct zorro_device_id *ent)
dev_warn(&z->dev, "cannot use DMA mask %llx\n",
TO_DMA_MASK(gvp11_xfer_mask));
error = -ENODEV;
- goto fail_check_or_alloc;
+ goto fail_irq;
}
} else
hdata->wh.dma_xfer_mask = default_dma_xfer_mask;
--
2.39.5 (Apple Git-154)
reply other threads:[~2025-03-18 13:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250318130532.11546-1-linmq006@gmail.com \
--to=linmq006@gmail.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=hyc.lee@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=lsahlber@redhat.com \
--cc=martin.petersen@oracle.com \
--cc=namjae.jeon@samsung.com \
--cc=sergey.senozhatsky@gmail.com \
--cc=stfrench@microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox