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

Commit 2e132aff authored by Arun Menon's avatar Arun Menon Committed by Gerrit - the friendly Code Review server
Browse files

[media] videobuf2-core: Add null check for current->mm in buf_prepare



If current->mm is NULL, then buf_prepare ends up using
garbage semaphor value from current->mm->mmap_sem during
down_read. This results in a device crash. This change
fixes the issue.

Change-Id: I9096c7d674d2493def1ce57ece551e7cd8f9e298
Signed-off-by: default avatarArun Menon <avmenon@codeaurora.org>
parent a5eb2c93
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