Fix for IBM PCMCIA Tokenring adapter and Linux 2.1.16

Joerg Pommnitz (joerg@raleigh.ibm.com)
Wed, 18 Dec 1996 13:25:39 -0500 (EST)


Hello everybody,

the following patch fixes an invalid access Ooops in
Linux 2.1.* with the PCMCIA Tokenring adapter.

--- ibmtr.c.orig Wed Dec 18 12:50:06 1996
+++ ibmtr.c Wed Dec 18 11:30:56 1996
@@ -683,7 +683,7 @@
}

/* Check ISRP EVEN too. */
- if ( *(unsigned char *)(ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN) == 0xFF)
+ if ( readb (ti->mmio + ACA_OFFSET + ACA_RW + ISRP_EVEN) == 0xFF)
{
DPRINTK("PCMCIA card removed.\n");
dev->interrupt = 0;

-- 
Joerg Pommnitz    | joerg@raleigh.ibm.com | Never attribute to malloc 
Mobile/Wireless   | Dept UMRA             | that which can be adequately
Tel:(919)254-6397 | Office B502/E117      | explained by stupidity.