diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-11-11 20:52:01 +0100 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-12-14 12:40:03 +0100 |
commit | 7e1e7ead88dff75b11b86ee0d5232c4591be1326 (patch) | |
tree | 844559e1dd8a881db68a791508a66196d9e383f3 /drivers/scsi | |
parent | [SCSI] qla2xxx: Update version number to 8.03.07.12-k. (diff) | |
download | linux-7e1e7ead88dff75b11b86ee0d5232c4591be1326.tar.xz linux-7e1e7ead88dff75b11b86ee0d5232c4591be1326.zip |
[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')
-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; } |