commit | 4e06e240dcbb803433ee31bfe89a3e785a77cd3b | [log] [tgz] |
---|---|---|
author | Jiri Slaby <jslaby@suse.cz> | Tue Mar 16 15:57:44 2010 +0100 |
committer | Dominik Brodowski <linux@dominikbrodowski.net> | Tue Mar 16 17:54:58 2010 +0100 |
tree | d303884800eabb74641591383746f440c215891d | |
parent | e794c01b7de40d180417eacbd910e8f31f2fafeb [diff] |
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>