3de5fe79 | 10-Oct-2024 |
Danylo Vodopianov <dvo-plv@napatech.com> |
net/ntnic: fix Coverity warnings
CI founc couple coverity problems which were fixed in this commit.
CID 440550, 440551, 440545, 440553, 440552, 440547: Null pointer dereferences (REVERSE_INULL) Th
net/ntnic: fix Coverity warnings
CI founc couple coverity problems which were fixed in this commit.
CID 440550, 440551, 440545, 440553, 440552, 440547: Null pointer dereferences (REVERSE_INULL) These issues were fixed by reworking variable NULL checking and adding NULL checking before var using.
CID 440543: Incorrect expression (IDENTICAL_BRANCHES) This issue was fixed by removing useless if statements from the code.
CID 440548: Null pointer dereferences (FORWARD_NULL) This issue was fixed by adding NULL checking before mp_fld_rst_serdes_rx var using.
CID 440546: Resource leaks (RESOURCE_LEAK) This issue was fixed by moving NULL checking before var using.
CID 440540: Error handling issues (CHECKED_RETURN) This issue was fixed with return value checking adding.
CID 440549: (OVERRUN) This issue was fixed with array edge values fixing.
Coverity issue: 440550, 440551, 440545, 440553, 440552, 440547 Coverity issue: 440540, 440543, 440546, 440548, 440549 Fixes: 51052594f795 ("net/ntnic: add physical layer control module") Cc: stable@dpdk.org
Signed-off-by: Danylo Vodopianov <dvo-plv@napatech.com> Acked-by: Serhii Iliushyk <sil-plv@napatech.com>
show more ...
|