]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/notifier.c
audit: Fix use after free in audit_remove_watch_rule()
[karo-tx-linux.git] / kernel / notifier.c
index fd2c9acbcc19856f4b53e28d1acd9f5d1cdae165..6196af8a82230024ba98647c7fe946bf842bd102 100644 (file)
@@ -95,7 +95,7 @@ static int notifier_call_chain(struct notifier_block **nl,
                if (nr_calls)
                        (*nr_calls)++;
 
-               if ((ret & NOTIFY_STOP_MASK) == NOTIFY_STOP_MASK)
+               if (ret & NOTIFY_STOP_MASK)
                        break;
                nb = next_nb;
                nr_to_call--;