Merge tag 'fsnotify_for_v4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / kernel / audit_watch.c
index 439a3a01368c7c4dfdda49be4a61cc1c8cf1425f..c17c0c268436807211cc411f888c8bdffd9da8f4 100644 (file)
@@ -274,7 +274,7 @@ static void audit_update_watch(struct audit_parent *parent,
                /* If the update involves invalidating rules, do the inode-based
                 * filtering now, so we don't omit records. */
                if (invalidating && !audit_dummy_context())
-                       audit_filter_inodes(current, current->audit_context);
+                       audit_filter_inodes(current, audit_context());
 
                /* updating ino will likely change which audit_hash_list we
                 * are on so we need a new watch for the new list */