Commit 4f9420c6 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] nbd: initialise the embedded kobject

From: Lou Langholtz <ldl@aros.net>

Fixes the NBD oopses which people have been reporting.
parent 49e57bfc
......@@ -691,6 +691,7 @@ static int __init nbd_init(void)
put_disk(disk);
goto out;
}
memset(disk->queue, 0, sizeof(struct request_queue));
blk_init_queue(disk->queue, do_nbd_request, &nbd_lock);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment