回复:[PATCH] usb: gadget: Fix unsigned comparison with less than zero

Jiapeng.Chong jiapeng.chong at linux.alibaba.com
Wed Jun 29 15:51:01 AEST 2022


Sorry, we didn't see this patch.
commit c09b1f372e746aeeb61ef8ffe0fea3970fd9273e

------------------------------------------------------------------
发件人:Greg KH <gregkh at linuxfoundation.org>
发送时间:2022年6月24日(星期五) 19:45
收件人:Jiapeng Chong <jiapeng.chong at linux.alibaba.com>
抄 送:neal_liu <neal_liu at aspeedtech.com>; balbi <balbi at kernel.org>; joel <joel at jms.id.au>; andrew <andrew at aj.id.au>; sumit.semwal <sumit.semwal at linaro.org>; christian.koenig <christian.koenig at amd.com>; linux-aspeed <linux-aspeed at lists.ozlabs.org>; linux-usb <linux-usb at vger.kernel.org>; linux-arm-kernel <linux-arm-kernel at lists.infradead.org>; linux-kernel <linux-kernel at vger.kernel.org>; linux-media <linux-media at vger.kernel.org>; dri-devel <dri-devel at lists.freedesktop.org>; linaro-mm-sig <linaro-mm-sig at lists.linaro.org>
主 题:Re: [PATCH] usb: gadget: Fix unsigned comparison with less than zero

On Thu, Jun 23, 2022 at 04:43:47PM +0800, Jiapeng Chong wrote:
> This was found by coccicheck:
> 
> ./drivers/usb/gadget/udc/aspeed_udc.c:496:8-13: WARNING: Unsigned expression compared with zero: chunk >= 0.

What does this mean?  Where is the error?

Please explain the reason for changes, not just the output of a random
tool that you ran on the code.

> Signed-off-by: Jiapeng Chong <jiapeng.chong at linux.alibaba.com>

What commit does this fix?

thanks,

greg k-h

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20220629/cb6bd167/attachment-0001.htm>


More information about the Linux-aspeed mailing list