Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd2b0607 authored by Tahir Dawson's avatar Tahir Dawson Committed by Gerrit - the friendly Code Review server
Browse files

dsp: q6asm: Delete all nodes in mmap_handle_list during RESET_EVENT



Clear the common_client mmap_handle_list when a RESET_EVENT is
received to avoid access to stale, unmapped handles

Change-Id: Ifcb7e98db45c476d159ac57a50333ea95391da8b
Signed-off-by: default avatarTahir Dawson <dawson@codeaurora.org>
parent 0fbe6935
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -1701,12 +1701,9 @@ static int32_t q6asm_srvc_callback(struct apr_client_data *data, void *priv)
				buf_node = list_entry(ptr,
						struct asm_buffer_node,
						list);
				if (buf_node->buf_phys_addr ==
				common_client.port[i].buf->phys) {
				list_del(&buf_node->list);
				kfree(buf_node);
			}
			}
			pr_debug("%s: Clearing custom topology\n", __func__);
		}