Skip to contentSkip to conversation

ide cleanups - Insert BUG() to __ide_set_handler()

PATCH New Eric Sesterhenn / snakebyte 1 participant 1 message Feb 1, 2006 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 ide cleanups - Insert BUG() to __ide_set_handler()

hi,

this patch makes __ide_set_handler() BUG() if a handler is already defined. This makes place for further cleanups.

drivers/ide/ide-iops.c renamed from drivers/ide/ide-iops.c.orig +1 -0
@@ -899,6 +899,7 @@ static void __ide_set_handler (ide_drive
 		printk(KERN_CRIT "%s: ide_set_handler: handler not null; "
 			"old=%p, new=%p\n",
 			drive->name, hwgroup->handler, handler);
+			BUG();
 	}
 	hwgroup->handler	= handler;
 	hwgroup->expiry		= expiry;

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors