]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/base/devres.c
devres: Make locking straight forward in release_nodes()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 17 May 2021 12:29:43 +0000 (15:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jun 2021 15:14:36 +0000 (17:14 +0200)
commitbbc8f3e79e9e35469ac87b0b3329729afc715885
treef1b07afb8d1bc9501c1b5fd08e30b3b442c8f14c
parentd826e0365199ccc084d6b757c966f4c8ca83d20b
devres: Make locking straight forward in release_nodes()

It seems for the sake of saving stack memory of couple of pointers,
the locking in release_nodes() callers becomes interesting.

Replace this logic with a straight forward locking and unlocking scheme.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210517122946.53161-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/devres.c