diff options
author | Om Narasimhan <om.turyx@gmail.com> | 2006-10-20 23:44:15 +0200 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-10-26 03:59:42 +0200 |
commit | a230a6785dd5af84b8b043a64d8df8adc81f3724 (patch) | |
tree | f882cb5538776f5aa8a88731f7e34a8f2887e3c9 /drivers/pcmcia/at91_cf.c | |
parent | [PATCH] i82092: wire up errors from pci_register_driver() (diff) | |
download | linux-a230a6785dd5af84b8b043a64d8df8adc81f3724.tar.xz linux-a230a6785dd5af84b8b043a64d8df8adc81f3724.zip |
[PATCH] pcmcia: au1000_generic fix
The previous code did something like,
if (error) goto out_err;
....
do {
struct au1000_pcmcia_socket *skt = PCMCIA_SOCKET(i);
del_timer_sync(&skt->poll_timer);
pcmcia_unregister_socket(&skt->socket);
out_err:
flush_scheduled_work();
ops->hw_shutdown(skt);
i--;
} while (i > 0)
.....
- On the error path, skt would not contain a valid value for the first
iteration (skt is masked by uninitialized automatic skt)
- Does not do hw_shutdown() for 0th element of PCMCIA_SOCKET
Signed-off-by: Om Narasimhan <om.turyx@gmail.com>
Cc: "Yoichi Yuasa" <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/at91_cf.c')
0 files changed, 0 insertions, 0 deletions