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

Skip to content
Commit 2684ad75 authored by Ben Romberger's avatar Ben Romberger Committed by Gerrit - the friendly Code Review server
Browse files

hal: Fix adev_open error handling

Change error handling in adev_open to correctly
set adev pointer to NULL after freeing memory and
destroy adev mutex before freeing adev memory. If
adev pointer is not set to NULL any calls made
into ahal will pass NULL checks and access freed
memory causing multiple issues such as segmentation
for locking a freed adev mutex.

Change-Id: I3cf35999d09418be3bb0c888d620eae18831a153
parent 3335dcd7
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