]> git.ipfire.org Git - people/arne_f/kernel.git/commit
staging: wfx: fix warning about freeing in-use mutex during device unregister
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 10 Mar 2020 10:13:52 +0000 (11:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Apr 2020 07:09:56 +0000 (09:09 +0200)
commit036ee5ccf9b19acc0284983b8f9c6bb78c088e55
treefcef25cc7f4e574f8a0cd558bb59196817259793
parent7b02b760e7cac5c1815de16775c6582248072f0c
staging: wfx: fix warning about freeing in-use mutex during device unregister

[ Upstream commit bab0a0b03442a62fe3abefcb2169e0b9ff95990c ]

After hif_shutdown(), communication with the chip is no more possible.
It the only request that never reply. Therefore, hif_cmd.lock is never
unlocked. hif_shutdown() unlock itself hif_cmd.lock to avoid a potential
warning during disposal of device. hif_cmd.key_renew_lock should also
been unlocked for the same reason.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200310101356.182818-2-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/wfx/hif_tx.c