Re: [PATCH 1/3] mmc: sdhci-s3c: fix possible NULL pointer dereference when probed via platform

2021-04-15 Thread Krzysztof Kozlowski
On 14/04/2021 18:49, Sylwester Nawrocki wrote: > On 14.04.2021 17:25, Krzysztof Kozlowski wrote: >> On 14/04/2021 17:12, Krzysztof Kozlowski wrote: >>> The driver can be matched by legacy platform way or OF-device matching. >>> In the first case, of_match_node() can return NULL, which immediately >

Re: [PATCH 1/3] mmc: sdhci-s3c: fix possible NULL pointer dereference when probed via platform

2021-04-14 Thread Sylwester Nawrocki
On 14.04.2021 17:25, Krzysztof Kozlowski wrote: On 14/04/2021 17:12, Krzysztof Kozlowski wrote: The driver can be matched by legacy platform way or OF-device matching. In the first case, of_match_node() can return NULL, which immediately would be dereferenced to get the match data. Addresses-Co

Re: [PATCH 1/3] mmc: sdhci-s3c: fix possible NULL pointer dereference when probed via platform

2021-04-14 Thread Krzysztof Kozlowski
On 14/04/2021 17:12, Krzysztof Kozlowski wrote: > The driver can be matched by legacy platform way or OF-device matching. > In the first case, of_match_node() can return NULL, which immediately > would be dereferenced to get the match data. > > Addresses-Coverity: Dereference null return value > F

[PATCH 1/3] mmc: sdhci-s3c: fix possible NULL pointer dereference when probed via platform

2021-04-14 Thread Krzysztof Kozlowski
The driver can be matched by legacy platform way or OF-device matching. In the first case, of_match_node() can return NULL, which immediately would be dereferenced to get the match data. Addresses-Coverity: Dereference null return value Fixes: cd1b00eb24b0 ("mmc: sdhci-s3c: Add device tree support