Re: [PATCH v2] scsi: cxgb4i: silence overflow warning in t4_uld_rx_handler()

2018-04-09 Thread Martin K. Petersen
Dan, > Smatch marks skb->data as untrusted so it complains that there is a > potential overflow here: > > drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:2111 t4_uld_rx_handler() > error: buffer overflow 'cxgb4i_cplhandlers' 239 <= 255. > > In this case, skb->data comes from the hardware or firmwa

[PATCH v2] scsi: cxgb4i: silence overflow warning in t4_uld_rx_handler()

2018-04-03 Thread Dan Carpenter
Smatch marks skb->data as untrusted so it complains that there is a potential overflow here: drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:2111 t4_uld_rx_handler() error: buffer overflow 'cxgb4i_cplhandlers' 239 <= 255. In this case, skb->data comes from the hardware or firmware so it's not