scsi: qedf: Remove unesseary function call
Subsystems (2)
PATCH 1/1 scsi: qedf: Remove unesseary function call
The result of skb_transport_header was unused. Calling this function warned when skb_transport_header_was_set returned false causing a panic on debug kernels.
--- drivers/scsi/qedf/qedf_main.c | 1 - 1 file changed, 1 deletion(-)
drivers/scsi/qedf/qedf_main.c +0 -1
@@ -2496,7 +2496,6 @@ static void qedf_recv_frame(struct qedf_ctx *qedf,/* Pull the header */ hp = (struct fcoe_hdr *)skb->data; - fh = (struct fc_frame_header *)skb_transport_header (skb);skb_pull (skb,sizeof (struct fcoe_hdr )); fr_len = skb->len -sizeof (struct fcoe_crc_eof );
Signature · 1 line
2.56.0
Quoted 21 lines · Jesse Taube
The result of
skb_transport_headerwas unused. Calling this function
warned whenskb_transport_header_was_setreturned false causing a panic on debug kernels.Signed-off-by Jesse Taube <[email protected]>---
drivers/scsi/qedf/qedf_main.c | 1 -1 file changed, 1 deletion(-)drivers/scsi/qedf/qedf_main.c +0
-0@@ -2496,7 +2496,6 @@ static void qedf_recv_frame(struct qedf_ctx *qedf,
/* Pull the header */
hp = (structfcoe_hdr*)skb->data;drivers/scsi/qedf/qedf_main.c +0
-1- fh = (struct fc_frame_header *)skb_transport_header (skb);
Quoted 3 lines
skb_pull(skb, sizeof(struct fcoe_hdr));fr_len=skb->len-sizeof(struct fcoe_crc_eof);
Looks good
Nilesh or Manish now that you are on the MAINTAINERS list for this file, can we get an ACK from you?
I really want Martin to merge this so we can move forward with some of these bugs, and he needs your ACK.
Thanks,
/John
Quoted 21 lines · Jesse Taube
The result of
skb_transport_headerwas unused. Calling this function warned whenskb_transport_header_was_setreturned false causing a panic on debug kernels.Signed-off-by Jesse Taube <[email protected]>--- drivers/scsi/qedf/qedf_main.c | 1 - 1 file changed, 1 deletion(-)drivers/scsi/qedf/qedf_main.c +0
-1@@ -2496,7 +2496,6 @@ static void qedf_recv_frame(struct qedf_ctx *qedf,/* Pull the header */ hp = (struct fcoe_hdr *)skb->data; - fh = (struct fc_frame_header *)skb_transport_header (skb);skb_pull (skb,sizeof (struct fcoe_hdr )); fr_len = skb->len -sizeof (struct fcoe_crc_eof );
Jesse,
From: Jesse Taube <[email protected]>
Sent: Thursday, October 29, 2026 9:35 PM
To: Martin K. Petersen <[email protected]>
Cc: [email protected]; [email protected]; James E.J. Bottomley <[email protected]>; Nimal Prabudoss I <[email protected]>; [email protected]; Nilesh Javali <[email protected]>; Manish Rangankar <[email protected]>; GR-ETH-Storage-Upstream <[email protected]>; Jesse Taube <[email protected]>
Subject: [EXTERNAL] [PATCH] scsi: qedf: Remove unesseary function call
The result of skb_transport_header was unused. Calling this function warned when skb_transport_header_was_set returned false causing a panic on debug kernels. Signed-off-by: Jesse Taube <jtaubepe@ redhat. com> --- drivers/scsi/qedf/qedf_main. c ZjQcmQRYFpfptBannerStart
Prioritize security for external emails:
Confirm sender and content safety before clicking links or opening attachments
https://us-phishalarm-ewt.proofpoint.com/EWT/v1/CRVmXkqW!tY3Z1f8UYlXatS-ced3a7ljFdyuZqiShD8U84cQDrie6xfl-Cea4s-00pRZgkOAcEQxp3FPrt-DlvgUuwE4NK53b1Rpl$
ZjQcmQRYFpfptBannerEnd
The result of skb_transport_header was unused. Calling this function warned when skb_transport_header_was_set returned false causing a panic on debug kernels.
--- drivers/scsi/qedf/qedf_main.c | 1 - 1 file changed, 1 deletion(-)
drivers/scsi/qedf/qedf_main.c +0 -1
@@ -2496,7 +2496,6 @@ static void qedf_recv_frame(struct qedf_ctx *qedf,/* Pull the header */ hp = (struct fcoe_hdr *)skb->data; - fh = (struct fc_frame_header *)skb_transport_header (skb);skb_pull (skb,sizeof (struct fcoe_hdr )); fr_len = skb->len -sizeof (struct fcoe_crc_eof );
Signature · 4 lines
2.56.0 Thanks for the patch. Reviewed-by: Nilesh Javali <[email protected]>
Jesse,
Quoted 3 lines
The result of
skb_transport_headerwas unused. Calling this function warned whenskb_transport_header_was_setreturned false causing a panic on debug kernels.
Applied to 7.5/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen
Quoted 3 lines · Jesse Taube
The result of
skb_transport_headerwas unused. Calling this function warned whenskb_transport_header_was_setreturned false causing a panic on debug kernels.
Applied to 7.5/scsi-queue, thanks!
[1/1] scsi: qedf: Remove unesseary function call
https://git.kernel.org/mkp/scsi/c/dd86dc1d86c8
Signature · 1 line
Martin K. Petersen