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
- Lines: 11
- Date:
2003-06-13 07:51:35.000000000 -0700
- Orig file:
linux-2.4.20/drivers/pcmcia/cs.c
- Orig date:
2002-08-02 17:39:44.000000000 -0700
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)