cdx: Introduce lock to protect controller ops
authorAbhijit Gangurde <abhijit.gangurde@amd.com>
Tue, 17 Oct 2023 16:05:00 +0000 (21:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Oct 2023 11:23:24 +0000 (13:23 +0200)
commitf0af816834667b626dc5a3aa09cced82c46f0e62
treec87fa74a3f94899f1de397ca2db7869368e7c3cc
parent54b406e10f0334ee0245d5129c8def444a49cd9b
cdx: Introduce lock to protect controller ops

Add a mutex lock to prevent race between controller ops initiated by
the bus subsystem and the controller registration/unregistration.

Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
Link: https://lore.kernel.org/r/20231017160505.10640-3-abhijit.gangurde@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/cdx/cdx.c