]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/audit.c
bpf: Fix passing modified ctx to ld/abs/ind instruction
[mirror_ubuntu-bionic-kernel.git] / kernel / audit.c
index 227db99b0f19a8f4797c424fa2957741bccf1ce5..bc169f2a4766ffa15941f384842f8f3784935166 100644 (file)
@@ -1058,6 +1058,8 @@ static void audit_log_feature_change(int which, u32 old_feature, u32 new_feature
                return;
 
        ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_FEATURE_CHANGE);
+       if (!ab)
+               return;
        audit_log_task_info(ab, current);
        audit_log_format(ab, " feature=%s old=%u new=%u old_lock=%u new_lock=%u res=%d",
                         audit_feature_names[which], !!old_feature, !!new_feature,