RE: scsi/fcoe: Fix preempt count leak in fcoe_filter_frames()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> The error exit path leaks preempt count. Add the missing put_cpu().
> 
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> 
> 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;
>  }
Thanks,

Reviewed-by: Yi Zou <yi.zou@xxxxxxxxx>

> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux