[PATCH v14 01/10] power: reset: reboot-mode: Synchronize list traversal
Shivendra Pratap
shivendra.pratap at oss.qualcomm.com
Wed Sep 17 10:06:22 PDT 2025
On 9/17/2025 12:14 AM, Sebastian Reichel wrote:
> Hi,
>
> On Fri, Aug 15, 2025 at 08:05:06PM +0530, Shivendra Pratap wrote:
>> List traversals must be synchronized to prevent race conditions
>> and data corruption. The reboot-mode list is not protected by a
>> lock currently, which can lead to concurrent access and race.
>>
>> Introduce a mutex lock to guard all operations on the reboot-mode
>> list and ensure thread-safe access. The change prevents unsafe
>> concurrent access on reboot-mode list.
>>
>> Signed-off-by: Shivendra Pratap <shivendra.pratap at oss.qualcomm.com>
>> ---
>
> This should use scoped_guard() and a Fixes: tag. Otherwise LGTM.
ACK. Will update this patch based on scoped_guard() and add a Fixes tag.
thanks,
Shivendra
More information about the linux-arm-kernel
mailing list