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 94a819f8 (pcmcia: assert locking to struct pcmcia_device) Signed-off-by: NJiri Slaby <jslaby@suse.cz> Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
Showing
想要评论请 注册 或 登录