aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2025-01-20 06:12:01 -0700
committerJohn Johansen <john.johansen@canonical.com>2025-02-10 11:16:30 -0800
commit509f8cb2fff927eeb5eb0ebdd410ec6f40430173 (patch)
tree87d8b21faa318773a8945b97aaf1edb18764956a /tools/perf/scripts/python
parentapparmor: fix dbus permission queries to v9 ABI (diff)
downloadlinux-509f8cb2fff927eeb5eb0ebdd410ec6f40430173.tar.gz
linux-509f8cb2fff927eeb5eb0ebdd410ec6f40430173.zip
apparmor: Fix checking address of an array in accum_label_info()
clang warns: security/apparmor/label.c:206:15: error: address of array 'new->vec' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] 206 | AA_BUG(!new->vec); | ~~~~~~^~~ The address of this array can never be NULL because it is not at the beginning of a structure. Convert the assertion to check that the new pointer is not NULL. Fixes: de4754c801f4 ("apparmor: carry mediation check on label") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202501191802.bDp2voTJ-lkp@intel.com/ Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions