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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux