diff options
| author | Om Narasimhan <[email protected]> | 2006-10-20 21:44:15 +0000 |
|---|---|---|
| committer | Dominik Brodowski <[email protected]> | 2006-10-26 01:59:42 +0000 |
| commit | a230a6785dd5af84b8b043a64d8df8adc81f3724 (patch) | |
| tree | f882cb5538776f5aa8a88731f7e34a8f2887e3c9 /net/lapb/lapb_in.c | |
| parent | [PATCH] i82092: wire up errors from pci_register_driver() (diff) | |
| download | kernel-a230a6785dd5af84b8b043a64d8df8adc81f3724.tar.gz kernel-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 <[email protected]>
Cc: "Yoichi Yuasa" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Dominik Brodowski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions
