Commit 5a5f7353 authored by Andrew Morton's avatar Andrew Morton Committed by David S. Miller

[AX25]: ax25_rt_add() locking fix.

Fix deadlock identified by the Stanford locking checker.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent bc239feb
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment