ASoC: msm: Fix to avoid accessing freed buffer node list

Avoid accessing the buffer node list after it gets
freed. Once the mem_map_handle match is found the entire
buffer node list will be freed. This change avoids further
looping through the buffer node list that will potentially
access undefined memory.

CRs-fixed: 420543
Change-Id: I3d75d91f4c9a2e607fd289f584d22a8b86cdddfc
Signed-off-by: Phani Kumar Uppalapati <phanik@codeaurora.org>
1 file changed