diff options
author | 2022-03-26 08:12:39 +0000 | |
---|---|---|
committer | 2022-03-26 11:49:09 -0700 | |
commit | 0906f3a3df07835e37077d8971aac65347f2ed57 (patch) | |
tree | 85f92e039959014d522db31c4a1ad70d9c79f5a3 /tools/perf/scripts/python/syscall-counts.py | |
parent | net/x25: Fix null-ptr-deref caused by x25_disconnect (diff) | |
download | linux-dev-0906f3a3df07835e37077d8971aac65347f2ed57.tar.xz linux-dev-0906f3a3df07835e37077d8971aac65347f2ed57.zip |
net: sparx5: switchdev: fix possible NULL pointer dereference
As the possible failure of the allocation, devm_kzalloc() may return NULL
pointer.
Therefore, it should be better to check the 'db' in order to prevent
the dereference of NULL pointer.
Fixes: 10615907e9b51 ("net: sparx5: switchdev: adding frame DMA functionality")
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions