diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c index 64a7b5971b57046eafd210d726fa039b05bc705d..cab97593ba549e7eb73509f1807546244c057d8e 100644 --- a/drivers/block/null_blk.c +++ b/drivers/block/null_blk.c @@ -742,10 +742,11 @@ static int null_add_dev(void) add_disk(disk); +done: mutex_lock(&lock); list_add_tail(&nullb->list, &nullb_list); mutex_unlock(&lock); -done: + return 0; out_cleanup_lightnvm: