Skip to contentSkip to conversation

libcxgbi: free skb after debug prints

PATCH Superseded Karen Xie 3 participants 6 messages Dec 10, 2014

Subsystems (3)

v6 of 10 Superseded Latest is v10 →

lore
Share & tools
lore

Karen Xie

author
#0 lore raw

PATCH v6 7/7 libcxgbi: free skb after debug prints

[PATCH net v6 7/7] libcxgbi: free skb after debug prints

From: Karen Xie <[email protected]>

The debug print was accessing the skb after it was freed.

---
 drivers/scsi/cxgbi/libcxgbi.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/scsi/cxgbi/libcxgbi.c +3 -1
index 7da59c3..eb58afc 100644
@@ -2294,10 +2294,12 @@ int cxgbi_conn_xmit_pdu(struct iscsi_task *task)
 		return err;
 	}
 
-	kfree_skb(skb);
 	log_debug(1 << CXGBI_DBG_ISCSI | 1 << CXGBI_DBG_PDU_TX,
 		"itt 0x%x, skb 0x%p, len %u/%u, xmit err %d.\n",
 		task->itt, skb, skb->len, skb->data_len, err);
+
+	kfree_skb(skb);
+
 	iscsi_conn_printk(KERN_ERR, task->conn, "xmit err %d.\n", err);
 	iscsi_conn_failure(task->conn, ISCSI_ERR_XMIT_FAILED);
 	return err;
#1 lore raw

Hello.

Quoted 1 line · Karen Xie

[PATCH net v6 7/7] libcxgbi: free skb after debug prints

Please, do not duplicate the subject in the changelog -- DaveM would have
to edit it out by hand.

Quoted 5 lines

From: Karen Xie <[email protected]>

The debug print was accessing the skb after it was freed.

WBR, Sergei

author
#2 lore raw

Thanks, v7 has been submitted to address your comment. Please review.
________________________________________
From: Sergei Shtylyov [[email protected]]
Sent: Wednesday, December 10, 2014 11:38 AM
To: Karen Xie; [email protected]; [email protected]
Cc: Hariprasad S; Anish Bhatt; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH net v6 7/7] libcxgbi: free skb after debug prints

Hello.

Quoted 1 line · Karen Xie

[PATCH net v6 7/7] libcxgbi: free skb after debug prints

Please, do not duplicate the subject in the changelog -- DaveM would have
to edit it out by hand.

Quoted 5 lines

From: Karen Xie <[email protected]>

The debug print was accessing the skb after it was freed.

WBR, Sergei

maintainer
#3 lore raw

From: Karen Xie <[email protected]>
Date: Wed, 10 Dec 2014 20:26:59 +0000

Quoted 1 line

Thanks, v7 has been submitted to address your comment. Please review.

Sorry, you did not actually address his comments.

He said to not duplicate your Subject lines in your message bodies, and you did not fix that.

author
#4 lore raw

Sorry, misread the comment, will resubmit. Thanks.

-----Original Message-----
From: David Miller [mailto:[email protected]]
Sent: Wednesday, December 10, 2014 12:33 PM
To: Karen Xie
Cc: [email protected]; [email protected]; [email protected]; Hariprasad S; Anish Bhatt; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH net v6 7/7] libcxgbi: free skb after debug prints

From: Karen Xie <[email protected]>
Date: Wed, 10 Dec 2014 20:26:59 +0000

Quoted 1 line

Thanks, v7 has been submitted to address your comment. Please review.

Sorry, you did not actually address his comments.

He said to not duplicate your Subject lines in your message bodies, and you did not fix that.

maintainer
#5 lore raw

From: Karen Xie <[email protected]>
Date: Wed, 10 Dec 2014 21:02:34 +0000

Quoted 1 line

Sorry, misread the comment, will resubmit. Thanks.

Please do not top-post.

Quote the relevant material, then provide your own content after the quoted material, not before.