From: Daniel Ritz Date: Fri, 14 Apr 2006 15:42:13 +0000 (+0200) Subject: [PATCH] pcmcia/pcmcia_resource.c: fix crash when using Cardbus cards X-Git-Tag: v2.6.17-rc3~28^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48b950ff241fca03a6969a5eb6a42a02722678d4;p=pandora-kernel.git [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. Signed-off-by: Daniel Ritz Signed-off-by: Dominik Brodowski --- Reading git-diff-tree failed