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

Skip to content
Commit 31dd8abd authored by Seemanta Dutta's avatar Seemanta Dutta Committed by Stephen Boyd
Browse files

msm: camera: Prevent double free of memory if post event fails



In camera_v4l2_s_fmt_vid_cap_mplane(), if msm_post_event() fails, then
sp->vb2_q.drv_priv pointer will get kzfree()'d for a second time within
camera_v4l2_vb2_q_release(). So prevent this double free by setting
sp->vb2_q.drv_priv to NULL after it is kzfree()'d the first time.

CRs-fixed: 507075
Change-Id: I07532b98be795601aa543898f7ae6bc714d8a643
Signed-off-by: default avatarSeemanta Dutta <seemanta@codeaurora.org>
parent f1f1b8d6
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