[SCSI] fcoe: Fix preempt count leak in fcoe_filter_frames()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 11 Nov 2011 19:52:01 +0000 (20:52 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 14 Dec 2011 11:40:03 +0000 (15:40 +0400)
The error exit path leaks preempt count. Add the missing put_cpu().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Yi Zou <yi.zou@intel.com>
Cc: stable@kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/fcoe/fcoe.c

index cefbe44bb84a1293db665510543ab8cccaec1622..f3f440c955f3e60e2efe9deaf12002b304f625f5 100644 (file)
@@ -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;
 }