summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorGuixin Liu <kanie@linux.alibaba.com>2026-07-29 18:59:58 +0800
committerKeith Busch <kbusch@kernel.org>2026-07-29 08:08:01 -0700
commitdf74eaad001cf669c332dc67ef91996532e6b52c (patch)
treefd62ea49f204d004072a353d5abcb082bb6ce866 /tools/perf/scripts/python/parallel-perf.py
parentf49d0c3a8d56a7cda1628ae17341a4a42063563c (diff)
nvme-pci: return error when parsing a quirk string fails
quirks_param_set() reuses 'err', which param_set_copystring() left as 0, as the return value of the whole function. When nvme_parse_quirk_entry() fails to parse a field, the code jumps to out_free_qlist and returns that stale 0, so a malformed quirks= parameter is silently accepted as valid. Set err to -EINVAL before jumping out on a parse failure. Fixes: 7bb8c40f5ad8 ("nvme: add support for dynamic quirk configuration via module parameter") Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Daniel Wagner <dwagner@suse.de> Signed-off-by: Guixin Liu <kanie@linux.alibaba.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions