OpenCloudOS-Kernel/drivers/spmi
Vamshi Gajjela 591d5b12f8 spmi: hisi-spmi-controller: Do not override device identifier
commit eda4923d78d634482227c0b189d9b7ca18824146 upstream.

'nr' member of struct spmi_controller, which serves as an identifier
for the controller/bus. This value is a dynamic ID assigned in
spmi_controller_alloc, and overriding it from the driver results in an
ida_free error "ida_free called for id=xx which is not allocated".

Signed-off-by: Vamshi Gajjela <vamshigajjela@google.com>
Fixes: 70f59c90c8 ("staging: spmi: add Hikey 970 SPMI controller driver")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240228185116.1269-1-vamshigajjela@google.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20240507210809.3479953-5-sboyd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-21 14:38:40 +02:00
..
Kconfig spmi: mediatek: Add support for MT6873/8192 2021-12-17 17:18:18 +01:00
Makefile spmi: mediatek: Add support for MT6873/8192 2021-12-17 17:18:18 +01:00
hisi-spmi-controller.c spmi: hisi-spmi-controller: Do not override device identifier 2024-06-21 14:38:40 +02:00
spmi-mtk-pmif.c spmi: mediatek: Fix UAF on device remove 2024-02-05 20:14:32 +00:00
spmi-pmic-arb.c spmi: fix W=1 kernel-doc warnings 2023-04-20 14:16:39 +02:00
spmi.c spmi: Add a check for remove callback when removing a SPMI driver 2023-04-20 14:16:39 +02:00