Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e1e7ead authored by Thomas Gleixner's avatar Thomas Gleixner Committed by James Bottomley
Browse files

[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: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarYi Zou <yi.zou@intel.com>
Cc: stable@kernel.org
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 09b4402d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}