]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45593a3ef34515de6ea3f2dbcd34fa6a840ada4e
tree455df0017e6d6be1d16ccb415fc0205097953e04
parent3cc98d89eb46b2aeb5ba3cbfd07dcf80c5ca322a
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