linux_dsm_epyc7002/drivers/bus/mhi/core
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
..
boot.c bus: mhi: core: Read and save device hardware information from BHI 2020-10-02 11:33:47 +02:00
debugfs.c bus: mhi: debugfs: Print channel context read-pointer 2020-10-02 11:33:48 +02:00
init.c bus: mhi: core: Fix null pointer access when parsing MHI configuration 2020-12-30 11:53:15 +01:00
internal.h bus: mhi: core: Introduce debugfs entries for MHI 2020-10-02 11:33:47 +02:00
main.c bus: mhi: core: Use generic name field for an MHI device 2020-10-02 11:33:46 +02:00
Makefile bus: mhi: core: Fix the building of MHI module 2020-10-02 11:33:47 +02:00
pm.c bus: mhi: core: Allow shared IRQ for event rings 2020-10-02 11:33:47 +02:00