diff options
author | Yuri Karpov <[email protected]> | 2022-11-24 11:43:03 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-11-28 11:09:51 +0000 |
commit | 9256db4e45e8b497b0e993cc3ed4ad08eb2389b6 (patch) | |
tree | 7df84bbbf6aa57072912e305b42c355f6e9322b3 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | dcc14cfd7debe11b825cb077e75d91d2575b4cb8 (diff) |
net: ethernet: nixge: fix NULL dereference
In function nixge_hw_dma_bd_release() dereference of NULL pointer
priv->rx_bd_v is possible for the case of its allocation failure in
nixge_hw_dma_bd_init().
Move for() loop with priv->rx_bd_v dereference under the check for
its validity.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 492caffa8a1a ("net: ethernet: nixge: Add support for National Instruments XGE netdev")
Signed-off-by: Yuri Karpov <[email protected]>
Reviewed-by: Maciej Fijalkowski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions