diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-11-11 23:52:01 +0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-12-14 15:40:03 +0400 |
commit | 7e1e7ead88dff75b11b86ee0d5232c4591be1326 (patch) | |
tree | 844559e1dd8a881db68a791508a66196d9e383f3 /drivers | |
parent | 09b4402d2c8e36b8d4270c4da235fd7bb312118d (diff) | |
download | linux-7e1e7ead88dff75b11b86ee0d5232c4591be1326.tar.xz |
[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')
-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 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; } |