fcoe patch fix for 3.3 (scsi-misc)
Subsystems (2)
PATCH 1/1 fcoe patch fix for 3.3 (scsi-misc)
This is just a trivial patch that I wanted to get out before the holidays.
---
Robert Love (1):
fcoe: remove double check if skb is nonlinear
drivers/scsi/fcoe/fcoe.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
Signature · 1 line
Thanks, //Rob
PATCH 1/1 fcoe: remove double check if skb is nonlinear
skb_linearize already has a check for skb_is_nonlinear, there is no need to duplicate the check in fcoe.c. This patch simply removes the unnecessary check and calls skb_linearize unconditionally.
Reported-by patrick kelle <[email protected]>
Signed-off-by Robert Love <[email protected]>
Acked-by patrick kelle <[email protected]>
--- drivers/scsi/fcoe/fcoe.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/scsi/fcoe/fcoe.c +1 -2
@@ -1670,8 +1670,7 @@ static void fcoe_recv_frame(struct sk_buff *skb) skb->dev ? skb->dev->name : "<NULL>"); port =lport_priv (lport); -if (skb_is_nonlinear (skb)) -skb_linearize (skb);/* not ideal */ +skb_linearize (skb);/* check for skb_is_nonlinear is within skb_linearize */ /* * Frame length checks and setting up the header pointers