diff options
| author | Colin Ian King <[email protected]> | 2019-04-13 17:00:26 +0100 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2019-04-16 08:03:17 -0300 |
| commit | a6d2a5a92e67d151c98886babdc86d530d27111c (patch) | |
| tree | 5f9a9ea6515a97a7536b5b3eacba30c840dbdb98 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | 1db86318c4d1a0d1c8a19535290f71a03a2f13ad (diff) | |
RDMA/cxgb4: Fix null pointer dereference on alloc_skb failure
Currently if alloc_skb fails to allocate the skb a null skb is passed to
t4_set_arp_err_handler and this ends up dereferencing the null skb. Avoid
the NULL pointer dereference by checking for a NULL skb and returning
early.
Addresses-Coverity: ("Dereference null return")
Fixes: b38a0ad8ec11 ("RDMA/cxgb4: Set arp error handler for PASS_ACCEPT_RPL messages")
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Potnuri Bharat Teja <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions