diff options
author | 2022-01-19 20:00:06 +0800 | |
---|---|---|
committer | 2022-01-24 15:37:13 +0100 | |
commit | 4d315357b3d6c315a7260420c6c6fc076e58d14b (patch) | |
tree | dadb05ce322add2639743003eababc517314dc6c /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | mmc: sdhci-of-esdhc: Check for error num after setting mask (diff) | |
download | wireguard-linux-4d315357b3d6c315a7260420c6c6fc076e58d14b.tar.xz wireguard-linux-4d315357b3d6c315a7260420c6c6fc076e58d14b.zip |
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: Jiasheng 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: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions