commit | ad959bc2bb1fe680ba6bbba0194be918c52fa025 | [log] [tgz] |
---|---|---|
author | Jordan Yates <jordan.yates@data61.csiro.au> | Tue Mar 08 15:41:32 2022 +1000 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Tue Mar 15 10:05:36 2022 +0100 |
tree | 617be948c80ff074b082f787b762cc01a5ab3742 | |
parent | ce3e1e7e29354fb391411cdf0f9a8c9f7071fd88 [diff] |
wifi: esp_at: claim net_context in rx Claim the net_context mutext associated with a socket before claiming the socket mutex. The receive callback claims the net_context mutex internally, which will now always succeed immediately. The TX path claims the net_context mutex before the socket mutex, and if we don't use the same order, we can end up in a deadlock. Fixes #43470. Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>