]> Pileus Git - ~andy/linux/blobdiff - security/apparmor/ipc.c
LSM: do not initialize common_audit_data to 0
[~andy/linux] / security / apparmor / ipc.c
index c3da93a5150de4a077aba32796c4f0fec9caf488..cf1071b14232a48e4f963db40a14a4c3937ce8e1 100644 (file)
@@ -42,7 +42,7 @@ static int aa_audit_ptrace(struct aa_profile *profile,
 {
        struct common_audit_data sa;
        struct apparmor_audit_data aad = {0,};
-       COMMON_AUDIT_DATA_INIT(&sa, NONE);
+       sa.type = LSM_AUDIT_DATA_NONE;
        sa.aad = &aad;
        aad.op = OP_PTRACE;
        aad.target = target;