summaryrefslogtreecommitdiff
path: root/security/apparmor/policy_unpack.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2022-02-14 00:32:28 +0300
committerJohn Johansen <john.johansen@canonical.com>2022-07-10 01:13:59 +0300
commit3e2a3a0830a2090e766d0d887d52c67de2a6f323 (patch)
tree9390bda52a8379926151894528349f26f069be7e /security/apparmor/policy_unpack.c
parent564423bf9c952bcc029b5b03c02e2937cb7a6550 (diff)
downloadlinux-3e2a3a0830a2090e766d0d887d52c67de2a6f323.tar.xz
apparmor: fix aa_label_asxprint return check
Clang static analysis reports this issue label.c:1802:3: warning: 2nd function call argument is an uninitialized value pr_info("%s", str); ^~~~~~~~~~~~~~~~~~ str is set from a successful call to aa_label_asxprint(&str, ...) On failure a negative value is returned, not a -1. So change the check. Fixes: f1bd904175e8 ("apparmor: add the base fns() for domain labels") Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/policy_unpack.c')
0 files changed, 0 insertions, 0 deletions