From: Thomas Gleixner Date: Fri, 11 Nov 2011 19:52:01 +0000 (+0100) Subject: SCSI: fcoe: Fix preempt count leak in fcoe_filter_frames() X-Git-Tag: firefly_0821_release~7541^2~2078 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d27020f6c090faf3688324af9a8b496435285039;p=firefly-linux-kernel-4.4.55.git SCSI: fcoe: Fix preempt count leak in fcoe_filter_frames() commit 7e1e7ead88dff75b11b86ee0d5232c4591be1326 upstream. The error exit path leaks preempt count. Add the missing put_cpu(). Signed-off-by: Thomas Gleixner Reviewed-by: Yi Zou Signed-off-by: James Bottomley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 8885b3ef369a..f829adcb3b79 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -1561,6 +1561,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; }