summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2003-07-10 10:03:24 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-07-10 10:03:24 -0700
commit4f9420c64bd8ea7996053efa9e902cbd3094bcba (patch)
tree6e8fab609d04611fd5c66c80b4fbcb680ba53308
parent49e57bfcd874860734d0ad63c56eac41f269f777 (diff)
[PATCH] nbd: initialise the embedded kobject
From: Lou Langholtz <ldl@aros.net> Fixes the NBD oopses which people have been reporting.
-rw-r--r--drivers/block/nbd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index 344757ae706d..759bd679110f 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -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);
}