linux_dsm_epyc7002/drivers/bus/mhi
Carl Yin 351c360a7c bus: mhi: core: Fix null pointer access when parsing MHI configuration
[ Upstream commit f4d0b39c842585c74bce8f8a80553369181b72df ]

Functions parse_ev_cfg() and parse_ch_cfg() access mhi_cntrl->mhi_dev
before it is set in function mhi_register_controller(),
use cntrl_dev instead of mhi_dev.

Fixes: 0cbf260820 ("bus: mhi: core: Add support for registering MHI controllers")
Signed-off-by: Carl Yin <carl.yin@quectel.com>
Reviewed-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Reviewed-by: Hemant Kumar <hemantk@codeaurora.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:15 +01:00
..
core bus: mhi: core: Fix null pointer access when parsing MHI configuration 2020-12-30 11:53:15 +01:00
Kconfig bus: mhi: core: Introduce debugfs entries for MHI 2020-10-02 11:33:47 +02:00
Makefile