aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2024-09-12 15:39:56 -0700
committerGreg Kroah-Hartman <[email protected]>2024-09-13 07:36:02 +0200
commit7d01ef789bdcdd02ac42b98ae5b7f98310a0e3d2 (patch)
treeb5b3943cd382e47d02dfe862fe39d67fdd85ed57 /drivers/fpga/fpga-bridge.c
parente837d833a13461c10f265a65ce6612e6dd43e76f (diff)
usb: roles: Improve the fix for a false positive recursive locking complaint
Improve commit fc88bb116179 ("usb: roles: add lockdep class key to struct usb_role_switch") as follows: * Move the lock class key declaration just above the mutex declaration such that the declaration order of these objects matches their initialization order. * Destroy the mutex and lock class key just before these objects are freed. This makes it easier to verify that the destruction calls happen after the last use of these objects. * Instead of switching the mutex key to the dynamic lock class key after initialization of the mutex has completed, initialize the mutex with the dynamic lock class key. Cc: Amit Sunil Dhamne <[email protected]> Cc: Badhri Jagan Sridharan <[email protected]> Cc: Hans de Goede <[email protected]> Cc: Andy Shevchenko <[email protected]> Cc: Heikki Krogerus <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions