From: Thomas Gleixner Date: Fri, 11 Nov 2011 19:52:01 +0000 (+0100) Subject: [SCSI] fcoe: Fix preempt count leak in fcoe_filter_frames() X-Git-Tag: next-20111213~103^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=242a5cd655cccc7e135f588754f76fa1488e964c;p=karo-tx-linux.git [SCSI] fcoe: Fix preempt count leak in fcoe_filter_frames() The error exit path leaks preempt count. Add the missing put_cpu(). Signed-off-by: Thomas Gleixner Reviewed-by: Yi Zou Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index cefbe44bb84a..f3f440c955f3 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -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; }