aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJiasheng Jiang <jiasheng@iscas.ac.cn>2022-01-11 15:34:11 +0800
committerJoel Stanley <joel@jms.id.au>2022-09-28 21:10:57 +0930
commit35af9fb49bc5c6d61ef70b501c3a56fe161cce3e (patch)
treeaf342474cb4eba49b16d434825e5db7ced98be3a /tools/perf/scripts/python/export-to-postgresql.py
parenthwmon: (occ) Check for device property for setting OCC active during probe (diff)
downloadlinux-dev-35af9fb49bc5c6d61ef70b501c3a56fe161cce3e.tar.xz
linux-dev-35af9fb49bc5c6d61ef70b501c3a56fe161cce3e.zip
fsi: core: Check error number after calling ida_simple_get
If allocation fails, the ida_simple_get() will return error number. So master->idx could be error number and be used in dev_set_name(). Therefore, it should be better to check it and return error if fails, like the ida_simple_get() in __fsi_get_new_minor(). Fixes: 09aecfab93b8 ("drivers/fsi: Add fsi master definition") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Reviewed-by: Eddie James <eajames@linux.ibm.com> Link: https://lore.kernel.org/r/20220111073411.614138-1-jiasheng@iscas.ac.cn Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions