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

Skip to content
Commit 5abe1e4a authored by Nirmal Abraham's avatar Nirmal Abraham Committed by Sridhar Gujje
Browse files

msm: camera: reqmgr: Avoid freeing subdev twice



The 'l_device' pointer in __cam_req_mgr_destroy_subdev is
set to NULL after freeing but this is done on a
local copy of the variable in stack. This results in
double-free when this function is called again. To avoid
this, pass 'l_device' pointer by reference and assign it
to NULL after freeing.

CRs-Fixed: 3120468
Change-Id: If2dde6f1c702bee26a3c8a68c2f45bafbf0f7cd6
Signed-off-by: default avatarNirmal Abraham <quic_c_nabrah@quicinc.com>
Signed-off-by: default avatarSridhar Gujje <quic_sgujje@quicinc.com>
parent b8109b2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment