]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/audit_watch.c
Merge tag 'for-v5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power...
[linux.git] / kernel / audit_watch.c
index d832ce9df065f2a5bb08d5f039745ad91c3c58db..b50c574223fa6d74cb0942a12dc48b91725fe0d4 100644 (file)
@@ -261,13 +261,12 @@ static void audit_update_watch(struct audit_parent *parent,
        struct audit_watch *owatch, *nwatch, *nextw;
        struct audit_krule *r, *nextr;
        struct audit_entry *oentry, *nentry;
-       const unsigned char *name = dname->name;
 
        mutex_lock(&audit_filter_mutex);
        /* Run all of the watches on this parent looking for the one that
         * matches the given dname */
        list_for_each_entry_safe(owatch, nextw, &parent->watches, wlist) {
-               if (audit_compare_dname_path(name, owatch->path,
+               if (audit_compare_dname_path(dname, owatch->path,
                                             AUDIT_NAME_FULL))
                        continue;