aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGaosheng Cui <cuigaosheng1@huawei.com>2022-09-16 13:20:50 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-09-24 14:54:38 +0200
commit5544e90c81261e82e02bbf7c6015a4b9c8c825ef (patch)
tree786b0cb58e13447f24b04a04dcc8eb5830b2d2f8 /tools/perf/scripts/python/export-to-postgresql.py
parentmtd: allow getting MTD device associated with a specific DT node (diff)
downloadlinux-dev-5544e90c81261e82e02bbf7c6015a4b9c8c825ef.tar.xz
linux-dev-5544e90c81261e82e02bbf7c6015a4b9c8c825ef.zip
nvmem: core: add error handling for dev_set_name
The type of return value of dev_set_name is int, which may return wrong result, so we add error handling for it to reclaim memory of nvmem resource, and return early when an error occurs. Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20220916122100.170016-4-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions