diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-10-03 12:29:09 +0300 |
---|---|---|
committer | Corey Minyard <corey@minyard.net> | 2025-10-03 18:38:17 +0300 |
commit | 0892507f4a0b76eb897afc2bacca85e172512379 (patch) | |
tree | fd1b6e3b72c618546738a3a71bdc008f238f07c7 /tools/perf/scripts/python/flamegraph.py | |
parent | e406d57be7bd2a4e73ea512c1ae36a40a44e499e (diff) | |
download | linux-0892507f4a0b76eb897afc2bacca85e172512379.tar.xz |
mfd: ls2kbmc: Fix an IS_ERR() vs NULL check in probe()
The devm_kzalloc() function returns NULL on error so check for that
instead of error pointers.
Fixes: d952bba3fbb5 ("mfd: ls2kbmc: Add Loongson-2K BMC reset function support")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Message-ID: <df80c6d61229eb8f877c3694525c0f97e64a43e8.1759478975.git.dan.carpenter@linaro.org>
Signed-off-by: Corey Minyard <corey@minyard.net>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions