Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: f1bd904 ("apparmor: add the base fns() for domain labels") Signed-off-by: Tom Rix <[email protected]> Signed-off-by: John Johansen <[email protected]>
- Loading branch information