diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-11-11 14:52:01 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-12-14 06:40:03 -0500 |
commit | 7e1e7ead88dff75b11b86ee0d5232c4591be1326 (patch) | |
tree | 844559e1dd8a881db68a791508a66196d9e383f3 /drivers/scsi/fcoe | |
parent | 09b4402d2c8e36b8d4270c4da235fd7bb312118d (diff) |
[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 <tglx@linutronix.de>
Reviewed-by: Yi Zou <yi.zou@intel.com>
Cc: stable@kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/fcoe')
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index cefbe44bb84..f3f440c955f 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, | |||
1624 | stats->InvalidCRCCount++; | 1624 | stats->InvalidCRCCount++; |
1625 | if (stats->InvalidCRCCount < 5) | 1625 | if (stats->InvalidCRCCount < 5) |
1626 | printk(KERN_WARNING "fcoe: dropping frame with CRC error\n"); | 1626 | printk(KERN_WARNING "fcoe: dropping frame with CRC error\n"); |
1627 | put_cpu(); | ||
1627 | return -EINVAL; | 1628 | return -EINVAL; |
1628 | } | 1629 | } |
1629 | 1630 | ||