NET: ksz884x, fix lock imbalance
authorJiri Slaby <jslaby@suse.cz>
Tue, 16 Mar 2010 04:53:50 +0000 (04:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2010 21:15:41 +0000 (14:15 -0700)
commitedee39321be9f88c47627379e8abadfce0508768
tree455df0017e6d6be1d16ccb415fc0205097953e04
parent6ad34145cf809384359fe513481d6e16638a57a3
NET: ksz884x, fix lock imbalance

Stanse found that one error path (when alloc_skb fails) in netdev_tx
omits to unlock hw_priv->hwlock. Fix that.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Tristram Ha <Tristram.Ha@micrel.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ksz884x.c