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

Skip to content
Commit 964acce1 authored by Tony Lijo Jose's avatar Tony Lijo Jose
Browse files

msm: camera: isp: Fix memdup_user sanity check



memdup_user return ERR_PTR in an error scenarios like invalid source
pointer or unable to allocate destination memory. Checking the return
address against integer zero in error case can fail as memdup_user
returns ERR_PTR(non zero ptr value) instead or NULL

Change-Id: I697fe4de5288223bced800506ed6e02904b5d636
Signed-off-by: default avatarTony Lijo Jose <tjose@codeaurora.org>
parent c93754cc
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