patch-2.4.21 linux-2.4.21/drivers/pcmcia/cs.c

Next file: linux-2.4.21/drivers/pcmcia/cs_internal.h
Previous file: linux-2.4.21/drivers/pcmcia/cistpl.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/pcmcia/cs.c linux-2.4.21/drivers/pcmcia/cs.c
@@ -882,6 +882,10 @@
 	c = &s->config[reg->Function];
     } else
 	c = CONFIG(handle);
+
+    if (c == NULL)
+	return CS_NO_CARD;
+
     if (!(c->state & CONFIG_LOCKED))
 	return CS_CONFIGURATION_LOCKED;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)