Home
last modified time | relevance | path

Searched hist:ccc495efb326d17be3e7790b5aa49b25e239ead7 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/scsi/cxgbi/cxgb4i/
H A Dcxgb4i.cdiff ccc495efb326d17be3e7790b5aa49b25e239ead7 Tue Apr 03 10:52:22 CEST 2018 Dan Carpenter <dan.carpenter@oracle.com> scsi: cxgb4i: silence overflow warning in t4_uld_rx_handler()

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
going to overflow unless there is a firmware bug.

[mkp: fixed braces]

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>