Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | Date | Tue, 24 Jun 2003 16:00:48 -0600 | From | Lou Langholtz <> | Subject | Re: Kernel Panic in 2.5.73-mm1 OOps part. |
| |
> > >> .. . . > > I'm *guestimating* that the following patch will fix this problem. Let > me know if you use it wether it makes this problem go away or not. > Note that to me at least, blk_init_queue() should be responsible for > initializing this memory not the driver. Either way, something has to > initialize request_queue.kobj.kset otherwise I think this is the > result when the kset field can be any value. > Woops... pressed send before doing the attachment... --- drivers/block/nbd.c 2003-06-24 14:39:59.043718133 -0600 +++ drivers/block/nbd-new.c 2003-06-24 15:28:04.318158305 -0600 @@ -695,6 +695,7 @@ put_disk(disk); goto out; } + memset(disk->queue, 0, sizeof(struct request_queue)); blk_init_queue(disk->queue, do_nbd_request, &nbd_lock); } | ![\](/images/icornerr.gif) |