diff --git a/drivers/net/ovpn/netlink.c b/drivers/net/ovpn/netlink.c
index 5432bc2eb8e8..6231d87304e1 100644
--- a/drivers/net/ovpn/netlink.c
+++ b/drivers/net/ovpn/netlink.c
@@ -333,6 +333,12 @@ static int ovpn_nl_peer_modify(struct ovpn_peer *peer, struct genl_info *info,
 		 */
 		local_ip = ovpn_nl_attr_local_ip(attrs);
 
+		/* reset the cache before publishing the new bind, so that
+		 * concurrent TX cannot pair it with a route cached for the
+		 * old one
+		 */
+		dst_cache_reset(&peer->dst_cache);
+
 		/* set peer sockaddr */
 		ret = ovpn_peer_reset_sockaddr(peer, &ss, local_ip);
 		if (ret < 0) {
@@ -341,7 +347,6 @@ static int ovpn_nl_peer_modify(struct ovpn_peer *peer, struct genl_info *info,
 					       ret);
 			goto err_unlock;
 		}
-		dst_cache_reset(&peer->dst_cache);
 	}
 
 	/* In a multipeer-to-multipeer setup we may have asymmetric peer IDs,
diff --git a/drivers/net/ovpn/peer.c b/drivers/net/ovpn/peer.c
index 2067825bb5b6..07f3fd9cbed6 100644
--- a/drivers/net/ovpn/peer.c
+++ b/drivers/net/ovpn/peer.c
@@ -294,16 +294,16 @@ void ovpn_peer_endpoints_update(struct ovpn_peer *peer, struct sk_buff *skb)
 		goto unlock;
 	}
 
+	/* reset the cache before publishing the new bind, so that concurrent TX
+	 * cannot pair it with a route cached for the old one
+	 */
+	dst_cache_reset(&peer->dst_cache);
+
 	if (unlikely(ovpn_peer_reset_sockaddr(peer,
 					      (struct sockaddr_storage *)&ss,
 					      local_ip) < 0))
 		goto unlock;
 
-	/* reset the cache only after a successful bind update to avoid useless
-	 * cache misses on concurrent TX
-	 */
-	dst_cache_reset(&peer->dst_cache);
-
 	/* if only the local address changed, bail out now */
 	if (!floated)
 		goto unlock;
