diff options
author | Young Xiao <92siuyang@gmail.com> | 2019-05-29 05:43:58 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-06-08 02:29:42 +0300 |
commit | f38b5069234937ae818d6a39fd4dc03d003b5565 (patch) | |
tree | 374a0cfeecf4360510bb0013fa37aa524702116f /drivers/edac/edac_mc_sysfs.c | |
parent | 3a11cf2217520e3c827a24c6d5f648fa45845787 (diff) | |
download | linux-f38b5069234937ae818d6a39fd4dc03d003b5565.tar.xz |
pinctrl: ns2: Fix potential NULL dereference
platform_get_resource() may fail and return NULL, so we should
better check it's return value to avoid a NULL pointer dereference
a bit later in the code.
Signed-off-by: Young Xiao <92siuyang@gmail.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/edac/edac_mc_sysfs.c')
0 files changed, 0 insertions, 0 deletions