]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - mm/backing-dev.c
kasan, slub: fix handling of kasan_slab_free hook
[mirror_ubuntu-bionic-kernel.git] / mm / backing-dev.c
index b5f940ce0143ba061a183db0df3ef0dc17f57c72..be585f545337c3adce6618df3553d7fb07aab4ce 100644 (file)
@@ -126,6 +126,7 @@ static int bdi_debug_register(struct backing_dev_info *bdi, const char *name)
                                               bdi, &bdi_debug_stats_fops);
        if (!bdi->debug_stats) {
                debugfs_remove(bdi->debug_dir);
+               bdi->debug_dir = NULL;
                return -ENOMEM;
        }
 
@@ -394,7 +395,7 @@ static void wb_shutdown(struct bdi_writeback *wb)
         * the barrier provided by test_and_clear_bit() above.
         */
        smp_wmb();
-       clear_bit(WB_shutting_down, &wb->state);
+       clear_and_wake_up_bit(WB_shutting_down, &wb->state);
 }
 
 static void wb_exit(struct bdi_writeback *wb)