aboutsummaryrefslogtreecommitdiff
path: root/drivers/pcmcia/vrc4171_card.c
diff options
context:
space:
mode:
authorGravatar Dan Carpenter <dan.carpenter@oracle.com> 2012-12-14 18:01:08 +0300
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2013-01-17 12:07:34 -0800
commit36c286d5a45731d957d02c317ee2ce775e856765 (patch)
tree778868e251f4f6bb1c1e22bdd203e2ccb04d0054 /drivers/pcmcia/vrc4171_card.c
parentmei: Fix some more kernel-doc typos in hw-me.c (diff)
downloadlinux-36c286d5a45731d957d02c317ee2ce775e856765.tar.gz
linux-36c286d5a45731d957d02c317ee2ce775e856765.tar.bz2
linux-36c286d5a45731d957d02c317ee2ce775e856765.zip
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 <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pcmcia/vrc4171_card.c')
0 files changed, 0 insertions, 0 deletions