diff options
author | Andrew Morton <akpm@osdl.org> | 2004-07-05 02:00:10 -0700 |
---|---|---|
committer | David S. Miller <davem@kernel.bkbits.net> | 2004-07-05 02:00:10 -0700 |
commit | 5a5f73530cefd996f47cbbf3b74c4cac3fc9ea19 (patch) | |
tree | 84759b45ae2c878af1bd17f6089bea321aaf6c3a /net | |
parent | bc239febda303d7a89f4ca6e509f62de563043c0 (diff) | |
download | history-5a5f73530cefd996f47cbbf3b74c4cac3fc9ea19.tar.gz |
[AX25]: ax25_rt_add() locking fix.
Fix deadlock identified by the Stanford locking checker.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/ax25/ax25_route.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ax25/ax25_route.c b/net/ax25/ax25_route.c index de40eee76a1839..82c3c451fbd9fc 100644 --- a/net/ax25/ax25_route.c +++ b/net/ax25/ax25_route.c @@ -122,6 +122,7 @@ static int ax25_rt_add(struct ax25_routes_struct *route) ax25_rt->digipeat->calls[i] = route->digi_addr[i]; } } + write_unlock(&ax25_route_lock); return 0; } ax25_rt = ax25_rt->next; |