Re: [PATCH] Remove extra unlock for the mutex

Florian Fainelli
2023-10-11T15:47:07Z

On 10/10/2023 5:28 PM, Kuniyuki Iwashima wrote:
> From: Florian Fainelli <f.fainelli@gmail.com>
> Date: Tue, 10 Oct 2023 15:51:13 -0700
>> On 10/10/23 15:46, Abhinav Singh wrote:
>>> There is a double unlock on mutex. This can cause undefined behaviour.
>>
>> Where is the double unlock of head->lock (which is a spinlock and not a
>> mutex, btw)?
>
> Maybe head is just confused with the preceding head2 as the two are
> the same type of struct. They are pointers of different hash tables
> though.

Suspecting that much as well, though wanted to read it from the submitter.
--
Florian