linux/drivers/spmi
David Collins c8669773c7 spmi: pmic-arb: block access for invalid PMIC arbiter v5 SPMI writes
The system crashes due to an access permission violation when
writing to a PMIC peripheral which is not owned by the current
ee.  Add a check for PMIC arbiter version 5 for such invalid
write requests and return an error instead of crashing the
system.

Signed-off-by: David Collins <collinsd@codeaurora.org>
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
Link: https://lore.kernel.org/r/1655004286-11493-8-git-send-email-quic_fenglinw@quicinc.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20220930005019.2663064-9-sboyd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-30 14:33:23 +02:00
..
hisi-spmi-controller.c spmi: hisi-spmi-controller: move driver from staging 2021-06-25 10:02:05 +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
spmi-mtk-pmif.c spmi: mediatek: Add support for MT8195 2021-12-17 17:18:18 +01:00
spmi-pmic-arb.c spmi: pmic-arb: block access for invalid PMIC arbiter v5 SPMI writes 2022-09-30 14:33:23 +02:00
spmi.c drivers: spmi: Directly use ida_alloc()/free() 2022-09-30 14:33:22 +02:00