aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/xen/pvcalls-front.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/pvcalls-front.c b/drivers/xen/pvcalls-front.c
index e5d95aab2cb8..4f3d664b3f39 100644
--- a/drivers/xen/pvcalls-front.c
+++ b/drivers/xen/pvcalls-front.c
@@ -1030,8 +1030,8 @@ int pvcalls_front_release(struct socket *sock)
1030 spin_lock(&bedata->socket_lock); 1030 spin_lock(&bedata->socket_lock);
1031 list_del(&map->list); 1031 list_del(&map->list);
1032 spin_unlock(&bedata->socket_lock); 1032 spin_unlock(&bedata->socket_lock);
1033 if (READ_ONCE(map->passive.inflight_req_id) != 1033 if (READ_ONCE(map->passive.inflight_req_id) != PVCALLS_INVALID_ID &&
1034 PVCALLS_INVALID_ID) { 1034 READ_ONCE(map->passive.inflight_req_id) != 0) {
1035 pvcalls_front_free_map(bedata, 1035 pvcalls_front_free_map(bedata,
1036 map->passive.accept_map); 1036 map->passive.accept_map);
1037 } 1037 }