projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09b4402
)
[SCSI] fcoe: Fix preempt count leak in fcoe_filter_frames()
author
Thomas Gleixner
<tglx@linutronix.de>
Fri, 11 Nov 2011 19:52:01 +0000
(20:52 +0100)
committer
James Bottomley
<JBottomley@Parallels.com>
Wed, 14 Dec 2011 11:40:03 +0000
(15:40 +0400)
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>
drivers/scsi/fcoe/fcoe.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/fcoe/fcoe.c
b/drivers/scsi/fcoe/fcoe.c
index cefbe44bb84a1293db665510543ab8cccaec1622..f3f440c955f3e60e2efe9deaf12002b304f625f5 100644
(file)
--- 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;
}