|author||Eli Lipsitz <firstname.lastname@example.org>||Tue Sep 27 00:31:52 2022 +0000|
|committer||CQ Bot Account <email@example.com>||Tue Sep 27 00:31:52 2022 +0000|
pw_software_update: Fix recursive lock acquisition in nanopb service This commit fixes the same recursive lock acquisition as I0ee7994fa5e093a05e349876406d0a2bd89fc3e7, in the nanopb software update service. The NotifyTransferSucceeded method acquires the same lock, leading to a recursive lock acquisition. This commit fixes the issue by by moving the outer lock acquisition into the if statement that calls SET_ERROR, which is mutually exclusive with the call to NotifyTransferSucceeded. Change-Id: I30db9cc47ceca8af5b724018ee8b29cef6fc58cd Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/112114 Pigweed-Auto-Submit: Eli Lipsitz <firstname.lastname@example.org> Reviewed-by: Ali Zhang <email@example.com> Commit-Queue: Auto-Submit <firstname.lastname@example.org>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.