]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
PCMCIA: resource, fix lock imbalance
authorJiri Slaby <jslaby@suse.cz>
Tue, 16 Mar 2010 14:57:44 +0000 (15:57 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Tue, 16 Mar 2010 16:54:58 +0000 (17:54 +0100)
commit4e06e240dcbb803433ee31bfe89a3e785a77cd3b
treed303884800eabb74641591383746f440c215891d
parente794c01b7de40d180417eacbd910e8f31f2fafeb
PCMCIA: resource, fix lock imbalance

Stanse found that one error path (when alloc_skb fails) in netdev_tx
omits to unlock hw_priv->hwlock. Fix that by moving away from unlock in
each fail path. Unlock at one place instead.

Introduced in 94a819f80297e1f635a7cde4ed5317612e512ba7
(pcmcia: assert locking to struct pcmcia_device)

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/pcmcia_resource.c