From: Dan Carpenter Date: Fri, 14 Dec 2012 15:01:08 +0000 (+0300) Subject: pcmcia: i82092: fix i82092aa_pci_remove() X-Git-Tag: v3.9-rc1~124^2~70 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36c286d5a45731d957d02c317ee2ce775e856765;p=pandora-kernel.git pcmcia: i82092: fix i82092aa_pci_remove() Smatch complains because the call to pci_set_drvdata(dev, &sockets[i].socket); is reading one step beyond the end of the sockets[] array. It will crash when we use it later. The only place which uses pci_get_drvdata() is i82092aa_pci_remove(). That function should loop through all the sockets and unregister them. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed