]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/notifier.c
Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / kernel / notifier.c
index 6196af8a82230024ba98647c7fe946bf842bd102..bfc95b3e42355d41edc036e46e661ee1db0f2708 100644 (file)
@@ -22,6 +22,7 @@ static int notifier_chain_register(struct notifier_block **nl,
                struct notifier_block *n)
 {
        while ((*nl) != NULL) {
+               WARN_ONCE(((*nl) == n), "double register detected");
                if (n->priority > (*nl)->priority)
                        break;
                nl = &((*nl)->next);