* [PATCH] fcoe:Fix incorrect use of non wrapper version of skb_buff helper function in fcoe_percpu_recieve_thread
@ 2015-09-20 22:22 Nicholas Krause
[not found] ` <1442787759-13033-1-git-send-email-xerofoify-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Nicholas Krause @ 2015-09-20 22:22 UTC (permalink / raw)
To: vasu.dev-ral2JQCrhuEAvxtiuMwx3w
Cc: fcoe-devel-s9riP+hp16TNLxjTenLetw, JBottomley-wo1vFcy6AUs,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-scsi-u79uwXL29TY76Z2rM5mHXA
This fixes the incorrect use of the non wrapper version of the
function skb_dequeue in fcoe_percpu_receive_thread to use the
wrapper version as we need to protect avoid other users from
concurrently access on the sk_buff_head tmp used as the link
list head for this call to skb_queue.
Signed-off-by: Nicholas Krause <xerofoify-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
drivers/scsi/fcoe/fcoe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index d3eb80c..f89bd4c 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -1888,7 +1888,7 @@ retry:
spin_unlock_bh(&p->fcoe_rx_list.lock);
- while ((skb = __skb_dequeue(&tmp)) != NULL)
+ while ((skb = skb_dequeue(&tmp)) != NULL)
fcoe_recv_frame(skb);
}
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-21 20:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-20 22:22 [PATCH] fcoe:Fix incorrect use of non wrapper version of skb_buff helper function in fcoe_percpu_recieve_thread Nicholas Krause
[not found] ` <1442787759-13033-1-git-send-email-xerofoify-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-09-21 20:09 ` Chris Leech
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox