diff options
| -rw-r--r-- | drivers/pcmcia/ds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index 8966dd09139d..ae10d1eed65e 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
| @@ -464,7 +464,7 @@ static int pcmcia_device_remove(struct device * dev) | |||
| 464 | * all devices | 464 | * all devices |
| 465 | */ | 465 | */ |
| 466 | did = (struct pcmcia_device_id *) p_dev->dev.driver_data; | 466 | did = (struct pcmcia_device_id *) p_dev->dev.driver_data; |
| 467 | if ((did->match_flags & PCMCIA_DEV_ID_MATCH_DEVICE_NO) && | 467 | if (did && (did->match_flags & PCMCIA_DEV_ID_MATCH_DEVICE_NO) && |
| 468 | (p_dev->socket->device_count != 0) && | 468 | (p_dev->socket->device_count != 0) && |
| 469 | (p_dev->device_no == 0)) | 469 | (p_dev->device_no == 0)) |
| 470 | pcmcia_card_remove(p_dev->socket, p_dev); | 470 | pcmcia_card_remove(p_dev->socket, p_dev); |
