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

Commit 28413f13 authored by Arun Menon's avatar Arun Menon
Browse files

msm: vidc: Do not unmap same buffer twice



The registeredbufs list may include nodes with
buffers which have the same fd but different offsets.
These buffers would be mapped once initally when they
are added to the list. Make sure to unmap them only
once by checking if the mapped field is set to true.
Without this change, the same buffer would get unmapped
twice and that would result in a device crash because
of NULL pointer access during unmap.

Change-Id: I7b77d832549b6e37a2ecfa36b563eebe9115a0fd
Signed-off-by: default avatarArun Menon <avmenon@codeaurora.org>
parent 5a3ed9ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment