]> git.hungrycats.org Git - linux/commitdiff
[PATCH] PPC64 iSeries virtual ethernet locking fix
authorAndrew Morton <akpm@osdl.org>
Wed, 19 May 2004 09:33:30 +0000 (02:33 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 19 May 2004 09:33:30 +0000 (02:33 -0700)
From: Olaf Hering <olh@suse.de>

Missing spin_unlock in the error path.

drivers/net/iseries_veth.c

index 0b56e801c7152a5b301e19b52c668706e32636fb..c5fd371c9b1861b05b0dfd7d56dea7df2f066fd1 100644 (file)
@@ -994,6 +994,7 @@ static int veth_start_xmit(struct sk_buff *skb, struct net_device *dev)
                        veth_error("%s: Tx while skb was pending!\n",
                                   dev->name);
                        dev_kfree_skb(skb);
+                       spin_unlock_irqrestore(&port->pending_gate, flags);
                        return 1;
                }