diff --git a/.pick_status.json b/.pick_status.json index 299775cafc5..87db2a82970 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -64,7 +64,7 @@ "description": "intel/aux_map: fix fallback unmapping range on failure", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "7c6faa1efe8f50263bfc1f71cb1c4a1c2302b5df", "notes": null diff --git a/src/intel/common/intel_aux_map.c b/src/intel/common/intel_aux_map.c index 3040d25d6dc..2804e30ec77 100644 --- a/src/intel/common/intel_aux_map.c +++ b/src/intel/common/intel_aux_map.c @@ -728,7 +728,7 @@ intel_aux_map_add_mapping(struct intel_aux_map_context *ctx, uint64_t main_addre if (!success && (main_inc_addr - main_address) > 0) { /* If the mapping failed, remove the mapped portion. */ remove_mapping_locked(ctx, main_address, - main_size_B - (main_inc_addr - main_address), + main_inc_addr - main_address, false /* reset_refcount */, &state_changed); } pthread_mutex_unlock(&ctx->mutex);