From 730604773cfad5dfcc20d2b43416c7e96d7f71bd Mon Sep 17 00:00:00 2001 From: Andrei Ushakov Date: Fri, 24 Jul 2015 01:31:21 -0700 Subject: [PATCH] deadlock fix in RemoveStaticRoute --- sandbox/route_linux.go | 1 - 1 file changed, 1 deletion(-) diff --git a/sandbox/route_linux.go b/sandbox/route_linux.go index 7010957..946e364 100644 --- a/sandbox/route_linux.go +++ b/sandbox/route_linux.go @@ -177,7 +177,6 @@ func (n *networkNamespace) AddStaticRoute(r *types.StaticRoute) error { } func (n *networkNamespace) RemoveStaticRoute(r *types.StaticRoute) error { - n.Lock() err := removeRoute(n.nsPath(), r.Destination, r.NextHop) if err == nil {