summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHarini Katakam <harini.katakam@xilinx.com>2021-08-24 15:32:09 +0530
committerDavid S. Miller <davem@davemloft.net>2021-08-25 10:39:17 +0100
commit85520079afce885b80647fbd0d13d8f03d057167 (patch)
tree09c1278ce7c20983c5f5dc25fe109fc02a53339e /tools/perf/scripts/python
parent2d26f6e39afb88d32b8f39e76a51b542c3c51674 (diff)
net: macb: Add a NULL check on desc_ptp
macb_ptp_desc will not return NULL under most circumstances with correct Kconfig and IP design config register. But for the sake of the extreme corner case, check for NULL when using the helper. In case of rx_tstamp, no action is necessary except to return (similar to timestamp disabled) and warn. In case of TX, return -EINVAL to let the skb be free. Perform this check before marking skb in progress. Fixes coverity warning: (4) Event dereference: Dereferencing a null pointer "desc_ptp" Signed-off-by: Harini Katakam <harini.katakam@xilinx.com> Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions