Skip to content
Commit a21648d7 authored by Chaitanya Tata's avatar Chaitanya Tata Committed by Maureen Helm
Browse files

drivers: wifi: Clean up exit path



Fix couple of bugs in exit path:

- In case of calloc failure, return's without unlocking
- memory is freed outside lock, in case of a tiny window of race, this
  can cause a crash when this function is called from two threads.

Signed-off-by: default avatarChaitanya Tata <Chaitanya.Tata@nordicsemi.no>
parent ea7d3bea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment