]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2012 22:16:54 +0000 (14:16 -0800)
commit 7e1e7ead88dff75b11b86ee0d5232c4591be1326 upstream.

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>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/fcoe/fcoe.c

index 5d0e9a24ae94effa0a5561d997a96d9802d50d0d..8858170add3d7bd45d5639b6058df68c70a00d13 100644 (file)
@@ -1635,6 +1635,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;
 }