diff options
author | Patrick Eigensatz <[email protected]> | 2020-06-01 13:12:01 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-06-01 11:05:35 -0700 |
commit | dafe2078a75af1abe4780313ef8dd8491ba8598f (patch) | |
tree | d59bf4e8f60ebc1603d125d25c9290672993275c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 07f6ecec65547099d0e5ea1b1fba748c4b90eaf0 (diff) |
ipv4: nexthop: Fix deadcode issue by performing a proper NULL check
After allocating the spare nexthop group it should be tested for kzalloc()
returning NULL, instead the already used nexthop group (which cannot be
NULL at this point) had been tested so far.
Additionally, if kzalloc() fails, return ERR_PTR(-ENOMEM) instead of NULL.
Coverity-id: 1463885
Reported-by: Coverity <[email protected]>
Signed-off-by: Patrick Eigensatz <[email protected]>
Acked-by: Nikolay Aleksandrov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions