linux_dsm_epyc7002/drivers/slimbus
Bjorn Andersson aaaa7a6006 slimbus: qcom-ngd-ctrl: Avoid sending power requests without QMI
[ Upstream commit 39014ce6d6028614a46395923a2c92d058b6fa87 ]

Attempting to send a power request during PM operations, when the QMI
handle isn't initialized results in a NULL pointer dereference. So check
if the QMI handle has been initialized before attempting to post the
power requests.

Fixes: 917809e228 ("slimbus: ngd: Add qcom SLIMBus NGD driver")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20201127102451.17114-7-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:24 +01:00
..
core.c slimbus: core: do not enter to clock pause mode in core 2020-09-25 14:41:50 +02:00
Kconfig slimbus: ngd: QCOM_QMI_HELPERS has to be selected 2018-11-27 08:44:06 +01:00
Makefile slimbus: stream: add stream support 2018-07-07 17:25:23 +02:00
messaging.c slimbus: messaging: add slim_alloc/free_txn_tid() 2018-07-07 17:24:32 +02:00
qcom-ctrl.c slimbus: qcom: add missed clk_disable_unprepare in remove 2020-01-14 21:46:48 +01:00
qcom-ngd-ctrl.c slimbus: qcom-ngd-ctrl: Avoid sending power requests without QMI 2020-12-30 11:53:24 +01:00
sched.c slimbus: Add support for 'clock-pause' feature 2017-12-19 11:01:03 +01:00
slimbus.h slimbus: Use the correct style for SPDX License Identifier 2020-01-14 21:46:47 +01:00
stream.c slimbus: fix kerneldoc comments 2019-06-10 18:44:21 +02:00