Re: Oops when insmod(8)ing ppa.o in 2.0.33

Andrzej Krzysztofowicz (ankry@idk.com.pl)
Thu, 26 Mar 1998 12:05:00 +0100 (MET)


>
> I just upgraded my laptop to 2.0.33 and tried the PPA driver for the
> first time. I configured it -- and all of the SCSI system -- as a
> module.
>
> I have no problems using either of my SCSI PCMCIA cards (a ZIP card --
> aha152x0 -- and a New Media card -- SYM53C500), but every time I try
> to insmod ppa.o, it complains that it cannot find any devices and then
> I get a null pointer dereference in scsi_mod.o's scsi_unregister_host,
> at the movzwl:
>
[...]

I think this is the same problem I've report on linux-kernel some months
ago (it was in 2.0.32). This appears always when ppa driver fails to load
because of any reason (not connected, not configured properly, not
recognized for some other reason). The following patch should help:

***********************************************************************
--- linux/drivers/scsi/ppa.c.old Thu Nov 14 14:20:10 1996
+++ linux/drivers/scsi/ppa.c Sun Nov 23 15:58:53 1997
@@ -397,6 +397,8 @@
{ struct Scsi_Host *hreg;
int rs;

+ host->proc_dir = &proc_scsi_ppa;
+
/* can we have the ports ? */

if (check_region(ppa_base,3)) {
@@ -416,8 +418,6 @@
}

/* now the glue ... */
-
- host->proc_dir = &proc_scsi_ppa;

request_region(ppa_base,3,"ppa");
***************************** end of patch ****************************

This problem does not appear in 2.1 kernels.

Regards

--
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  phone: (48)(58) 347 14 61            fax: (48)(58) 347 28 21
Faculty of Applied Phys.& Maths, Technical University of Gdansk, Poland

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu