summaryrefslogtreecommitdiff
path: root/drivers/scsi/fcoe
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-11-11 19:52:01 (GMT)
committerJames Bottomley <JBottomley@Parallels.com>2011-12-14 11:40:03 (GMT)
commit7e1e7ead88dff75b11b86ee0d5232c4591be1326 (patch)
tree844559e1dd8a881db68a791508a66196d9e383f3 /drivers/scsi/fcoe
parent09b4402d2c8e36b8d4270c4da235fd7bb312118d (diff)
downloadlinux-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/scsi/fcoe')
-rw-r--r--drivers/scsi/fcoe/fcoe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index cefbe44..f3f440c 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;
}