aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2017-12-05 17:36:54 +0300
committerJason Gunthorpe <[email protected]>2017-12-13 11:00:13 -0700
commitccc04cdd55d8cfa7376ba96a037ba0f1b3df33c7 (patch)
treea16216a98da32b58300b4162e912cd7cc8c946b0 /tools/perf/scripts/python/bin/stackcollapse-report
parent0cb65d421a2ad714d336e673d448184ea51bb66a (diff)
RDMA/cxgb4: Add a sanity check in process_work()
The story is that Smatch marks skb->data as untrusted so it generates a warning message here: drivers/infiniband/hw/cxgb4/cm.c:4100 process_work() error: buffer overflow 'work_handlers' 241 <= 255 In other places which handle this such as t4_uld_rx_handler() there is some checking to make sure that the function pointer is not NULL. I have added bounds checking and a check for NULL here as well. Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Steve Wise <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions