lkml.org 
[lkml]   [2003]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: 2.5.58 Oops when booting from initrd - kobject_del
From
Date
On Tue, 14 Jan 2003 15:53:26 CST, Patrick Mochel said:
> Could you please try the following patch and see if it fixes the problem?

This fix worked for me.. am on 2.5.58 right now.... Many thanks..

/Valdis

> ===== drivers/block/elevator.c 1.36 vs edited =====
> --- 1.36/drivers/block/elevator.c Sun Jan 12 08:10:40 2003
> +++ edited/drivers/block/elevator.c Tue Jan 14 15:46:00 2003
> @@ -431,10 +431,13 @@
> void elv_unregister_queue(struct gendisk *disk)
> {
> request_queue_t *q = disk->queue;
> - elevator_t *e = &q->elevator;
> + elevator_t *e;
>
> - kobject_unregister(&e->kobj);
> - kobject_put(&disk->kobj);
> + if (q) {
> + e = &q->elevator;
> + kobject_unregister(&e->kobj);
> + kobject_put(&disk->kobj);
> + }
> }
>
> elevator_t elevator_noop = {
>
>

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.045 / U:24.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site