Re: [PATCH] Remove extra unlock for the mutex

From: Florian Fainelli
Date: Wed Oct 11 2023 - 11:47:11 EST




On 10/10/2023 5:28 PM, Kuniyuki Iwashima wrote:
From: Florian Fainelli <f.fainelli@xxxxxxxxx>
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