Re: 答复: [PATCH] bus: mhi: core: Fix null pointer access

2020-10-28 Thread Bhaumik Bhatt
On 2020-10-27 19:03, Carl Yin wrote: Hi bbhatt: On Wednesday, October 28, 2020 9:02 AM, bbhatt wrote: Hi Carl, Yes this change is needed. Good catch. I ran in to this issue as well when a dev_err() call was made with a bad MHI configuration. [carl.yin] yes, I also meet this error with a ba

答复: [PATCH] bus: mhi: core: Fix null pointer access

2020-10-28 Thread 殷张成
Hi bbhatt: On Wednesday, October 28, 2020 9:02 AM, bbhatt wrote: > Hi Carl, > > Yes this change is needed. Good catch. I ran in to this issue as well when a > dev_err() call was made with a bad MHI configuration. [carl.yin] yes, I also meet this error with a bad MHI configuration. > > Maybe you

[PATCH] bus: mhi: core: Fix null pointer access

2020-10-26 Thread carl . yin
From: carl function parse_ev_cfg and parse_ch_cfg access mhi_cntrl->mhi_dev before it is set in function mhi_register_controller, use cntrl_dev to instead mhi_dev. Signed-off-by: carl --- drivers/bus/mhi/core/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver