Re: [PATCH] mmc: sdhci-msm: Fix possible NULL pointer exception

2021-01-05 Thread Bjorn Andersson
On Tue 22 Dec 02:48 CST 2020, Md Sadre Alam wrote: > of_device_get_match_data returns NULL when no match. > So add the NULL pointer check to avoid dereference. > > Signed-off-by: Md Sadre Alam > --- > drivers/mmc/host/sdhci-msm.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [PATCH] mmc: sdhci-msm: Fix possible NULL pointer exception

2021-01-05 Thread Adrian Hunter
On 22/12/20 10:48 am, Md Sadre Alam wrote: > of_device_get_match_data returns NULL when no match. > So add the NULL pointer check to avoid dereference. > > Signed-off-by: Md Sadre Alam > --- > drivers/mmc/host/sdhci-msm.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [PATCH] mmc: sdhci-msm: Fix possible NULL pointer exception

2020-12-30 Thread Veerabhadrarao Badiganti
On 12/22/2020 2:18 PM, Md Sadre Alam wrote: of_device_get_match_data returns NULL when no match. So add the NULL pointer check to avoid dereference. Signed-off-by: Md Sadre Alam --- Reviewed-by: Veerabhadrarao Badiganti drivers/mmc/host/sdhci-msm.c | 2 ++ 1 file changed, 2

[PATCH] mmc: sdhci-msm: Fix possible NULL pointer exception

2020-12-22 Thread Md Sadre Alam
of_device_get_match_data returns NULL when no match. So add the NULL pointer check to avoid dereference. Signed-off-by: Md Sadre Alam --- drivers/mmc/host/sdhci-msm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index