From b62013c24c4bb44b2a9a079306ca404d37fbffd1 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 --- libnetwork/sandbox/route_linux.go | 1 - 1 file changed, 1 deletion(-) diff --git a/libnetwork/sandbox/route_linux.go b/libnetwork/sandbox/route_linux.go index 7010957345..946e364860 100644 --- a/libnetwork/sandbox/route_linux.go +++ b/libnetwork/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 {