]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
irda: Fix lockdep annotations in hashbin_delete().
authorDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2017 21:19:39 +0000 (16:19 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 16 Mar 2017 02:27:15 +0000 (02:27 +0000)
commit55429dd9c16006c5f2edc53c25a3594d299fbf98
treec608f094860e3dc6b9dc00150574249258b6c844
parent41abcae496e15402bb2df9bc6d52523e47ca2a2d
irda: Fix lockdep annotations in hashbin_delete().

commit 4c03b862b12f980456f9de92db6d508a4999b788 upstream.

A nested lock depth was added to the hasbin_delete() code but it
doesn't actually work some well and results in tons of lockdep splats.

Fix the code instead to properly drop the lock around the operation
and just keep peeking the head of the hashbin queue.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Tested-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/irda/irqueue.c