diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2021-03-05 06:49:30 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-10 15:22:27 +0300 |
commit | e9e7fce0384b43f9b6c42dee1a79c0a1c332f326 (patch) | |
tree | 22398fd3e1db3b2c72253a1c2bbf1cc315d2f6c4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 98b94b6e38ca0c4eeb29949c656f6a315000c23e (diff) | |
download | linux-e9e7fce0384b43f9b6c42dee1a79c0a1c332f326.tar.xz |
regulator: rt4831: Fix return value check in rt4831_regulator_probe()
In case of error, the function dev_get_regmap() returns NULL
pointer not ERR_PTR(). The IS_ERR() test in the return value
check should be replaced with NULL test.
Fixes: 9351ab8b0cb6 ("regulator: rt4831: Adds support for Richtek RT4831 DSV regulator")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20210305034930.3236099-1-weiyongjun1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions