aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorRyan Lee <[email protected]>2024-09-25 00:56:05 +0000
committerJohn Johansen <[email protected]>2024-11-27 03:21:06 +0000
commit8532503eac69c65182939d2aefc6d01c9f421a46 (patch)
tree9ee019594f27d331a1564b9dd9d52fa77f729959 /drivers/platform/x86/intel/pmt/class.c
parentapparmor: fix 'Do simple duplicate message elimination' (diff)
downloadkernel-8532503eac69c65182939d2aefc6d01c9f421a46.tar.gz
kernel-8532503eac69c65182939d2aefc6d01c9f421a46.zip
apparmor: document capability.c:profile_capable ad ptr not being NULL
The profile_capabile function takes a struct apparmor_audit_data *ad, which is documented as possibly being NULL. However, the single place that calls this function never passes it a NULL ad. If we were ever to call profile_capable with a NULL ad elsewhere, we would need to rework the function, as its very first use of ad is to dereference ad->class without checking if ad is NULL. Thus, document profile_capable's ad parameter as not accepting NULL. Signed-off-by: Ryan Lee <[email protected]> Signed-off-by: John Johansen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions