err2-15: ax25_rt_add() locking fix
Subsystems (2)
PATCH 1/1 err2-15: ax25_rt_add() locking fix
It can return with the lock held.
Found by the Stanford locking checker
Signed-off-by Andrew Morton <[email protected]>
---
25-akpm/net/ax25/ax25_route.c | 1 + 1 files changed, 1 insertion(+)
net/ax25/ax25_route.c renamed from net/ax25/ax25_route.c~err2-15-ax25_rt_add-locking-fix +1 -0
@@ -122,6 +122,7 @@ static int ax25_rt_add(struct ax25_route ax25_rt->digipeat->calls[i] = route->digi_addr[i]; } } +write_unlock (&ax25_route_lock);return 0 ; } ax25_rt = ax25_rt->next;
_
David S. Miller
AppliedQuoted 5 lines · On Fri, 02 Jul 2004 01:46:23 -0700 [email protected] wrote:
It can return with the lock held.
Found by the Stanford locking checker
Signed-off-by Andrew Morton <[email protected]>
Applied.