Re: [PATCH] pcmcia/pcmcia_resource.c: fix crash when using Cardbuscards

From: Benjamin Herrenschmidt
Date: Fri Apr 14 2006 - 17:02:43 EST


On Fri, 2006-04-14 at 17:42 +0200, Daniel Ritz wrote:
> [PATCH] pcmcia/pcmcia_resource.c: fix crash when using Cardbus cards
>
> using the old ioctl interface together with cardbus card gives a NULL
> pointer dereference since cardbus devices don't have a struct pcmcia_device.
> also s->io[0].res can be NULL as well.
>
> fix is to move the pcmcia code after the cardbus code and to check for a null
> pointer.

Also note that when the card is inserted, cardctl info does print some
useful infos while pccardctl info will display nothing (empty strings).

Ben.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/