Skip to contentSkip to conversation

scsi: qedf: Remove unesseary function call

PATCH Applied Jesse Taube 5 participants 6 messages Oct 29 – Nov 18

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index da429b3a4283..f2bc0ac684e0 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 21 lines · Jesse Taube

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 -0
index da429b3a4283..f2bc0ac684e0 100644
@@ -2496,7 +2496,6 @@ static void qedf_recv_frame(struct qedf_ctx
 *qedf,


  /* Pull the header */
  hp = (struct fcoe_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

Reviewed-by on v1 1/1
#2 lore raw
In reply to Jesse Taube

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_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
index da429b3a4283..f2bc0ac684e0 100644
@@ -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);
 
#3 lore raw
In reply to Jesse Taube

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
index da429b3a4283..f2bc0ac684e0 100644
@@ -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]>
maintainer Applied
#4 lore raw
In reply to Jesse Taube

Jesse,

Quoted 3 lines

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.

Applied to 7.5/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen