Re: [PATCH v2] mmc: dw_mmc: Fix to avoid potential NULL pointer dereference

2019-03-19 Thread Robin Murphy
On 19/03/2019 01:45, Aditya Pakki wrote: of_match_node can fail and return NULL in case no matching structure. The patches checks for such a scenario and returns -ENXIO. FWIW, it looks like most of these instances could be cleaned up even more with of_device_get_match_data(). In general, do

[PATCH v2] mmc: dw_mmc: Fix to avoid potential NULL pointer dereference

2019-03-18 Thread Aditya Pakki
of_match_node can fail and return NULL in case no matching structure. The patches checks for such a scenario and returns -ENXIO. --- V1: Added files dw_mmc-zx.c and dw_mmc-rockchip.c Signed-off-by: Aditya Pakki --- drivers/mmc/host/dw_mmc-exynos.c | 2 ++ drivers/mmc/host/dw_mmc-k3.c |