Tested. Works for me too.
/Mikael
>
>--- linux-bk/drivers/ide/ide-tape.c 2002-12-19 18:05:07.000000000 -0200
>+++ linux-2.4.21/drivers/ide/ide-tape.c 2002-12-19 17:59:39.000000000 -0200
>@@ -6597,14 +6597,16 @@
>
> for (minor = 0; minor < MAX_HWIFS * MAX_DRIVES; minor++) {
> drive = idetape_chrdevs[minor].drive;
>- if (drive != NULL && idetape_cleanup(drive))
>- printk(KERN_ERR "ide-tape: %s: cleanup_module() "
>- "called while still busy\n", drive->name);
>- }
>+ if (drive) {
>+ if (idetape_cleanup(drive))
>+ printk(KERN_ERR "ide-tape: %s: cleanup_module() "
>+ "called while still busy\n", drive->name);
> #ifdef CONFIG_PROC_FS
>- if (drive->proc)
>- ide_remove_proc_entries(drive->proc, idetape_proc);
>+ if (drive->proc)
>+ ide_remove_proc_entries(drive->proc, idetape_proc);
> #endif
>+ }
>+ }
>
> ide_unregister_module(&idetape_module);
> }
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/