Skip to content
Commit 4d315357 authored by 蒋家盛's avatar 蒋家盛 Committed by Ulf Hansson
Browse files

mmc: sh_mmcif: Check for null res pointer



If there is no suitable resource, platform_get_resource() will return
NULL.
Therefore in order to avoid the dereference of the NULL pointer, it
should be better to check the 'res'.

Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Cc: stable@vger.kernel.org # v5.16+
Link: https://lore.kernel.org/r/20220119120006.1426964-1-jiasheng@iscas.ac.cn


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 40c67c29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment