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: accepted/tizen/common/20141203.182822~5539^2~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e1e7ead88dff75b11b86ee0d5232c4591be1326;p=platform%2Fkernel%2Flinux-arm64.git [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 Reviewed-by: Yi Zou Cc: stable@kernel.org Signed-off-by: James Bottomley --- 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; }