OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.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
|
history
diff --git
a/drivers/scsi/fcoe/fcoe.c
b/drivers/scsi/fcoe/fcoe.c
index
cefbe44
..
f3f440c
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;
}