linux/drivers/bus/mhi/core
Carl Yin f4d0b39c84
bus: mhi: core: Fix null pointer access when parsing MHI configuration
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>
2020-11-18 15:20:34 +05:30
..
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-11-18 15:20:34 +05:30
internal.h bus: mhi: core: fix potential operator-precedence with BHI macros 2020-11-18 15:20:34 +05:30
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