2004-11-15 21:28:02

by Andries E. Brouwer

[permalink] [raw]
Subject: [PATCH] fix appletalk locking

Just tried the new toy. It works.

diff -uprN -X /linux/dontdiff a/net/appletalk/ddp.c b/net/appletalk/ddp.c
--- a/net/appletalk/ddp.c 2004-11-15 20:02:25.000000000 +0100
+++ b/net/appletalk/ddp.c 2004-11-15 22:33:43.000000000 +0100
@@ -563,7 +563,7 @@ static int atrtr_create(struct rtentry *

retval = -ENOBUFS;
if (!rt)
- goto out;
+ goto out_unlock;
memset(rt, 0, sizeof(*rt));

rt->next = atalk_routes;