Skip to content

Commit

Permalink
[SCSI] fcoe: Fix preempt count leak in fcoe_filter_frames()
Browse files Browse the repository at this point in the history
The error exit path leaks preempt count. Add the missing put_cpu().

Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Yi Zou <[email protected]>
Cc: [email protected]
Signed-off-by: James Bottomley <[email protected]>
  • Loading branch information
KAGA-KOKO authored and James Bottomley committed Dec 14, 2011
1 parent 09b4402 commit 7e1e7ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/fcoe/fcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1624,6 +1624,7 @@ static inline int fcoe_filter_frames(struct fc_lport *lport,
stats->InvalidCRCCount++;
if (stats->InvalidCRCCount < 5)
printk(KERN_WARNING "fcoe: dropping frame with CRC error\n");
put_cpu();
return -EINVAL;
}

Expand Down

0 comments on commit 7e1e7ea

Please sign in to comment.