Commit: e3c92f1f786f0b55440bd908b55894d0c792cf0e
Parent: 7f92f75e88b66ba73db5a676c35c704e213dcd70
Author: Tedd Ho-Jeong An <tedd.an@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2022-06-24 02:24:57
Tree: acaa516d20226a2b03522cefc02d1014d26d50a6

mgmt-tester: Fix null dereference issue reported by scan-build This patch fixes the null dereference reported by the scan-build. tools/mgmt-tester.c:12025:28: warning: Access to field 'cap_len' results in a dereference of a null pointer (loaded from variable 'rp') [core.NullDereference] if (sizeof(rp->cap_len) + rp->cap_len != length) { ^~~~~~~~~~~

Diffstat

M tools/mgmt-tester.c | 2 ++

1 files changed, 2 insertions(+), 0 deletions(-)

View Full Diff | Patch