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

Commit 1192d7f2 authored by E V Ravi's avatar E V Ravi
Browse files

msm: ais: 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.

Change-Id: Iebba12cc491d0a9ddfff612d72c3facbdc9187d5
Signed-off-by: default avatarE V Ravi <quic_evenka@quicinc.com>
parent a8989668
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