aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorBjorn Helgaas <[email protected]>2022-12-16 10:21:26 -0600
committerBjorn Helgaas <[email protected]>2023-01-18 11:11:20 -0600
commitddc10938e08cd7aac63d8385f7305f7889df5179 (patch)
tree04d06350883c6fa34c37bd7d1e4f8d0d473a6d31 /tools/perf/scripts/python/export-to-sqlite.py
parent4e353ff40a830c9c5a9feee13d1cacbc3f803e8f (diff)
PCI: switchtec: Return -EFAULT for copy_to_user() errors
switchtec_dev_read() didn't handle copy_to_user() errors correctly: it assigned "rc = -EFAULT", but actually returned either "size", -ENXIO, or -EBADMSG instead. Update the failure cases to unlock mrpc_mutex and return -EFAULT directly. Link: https://lore.kernel.org/r/[email protected] Fixes: 080b47def5e5 ("MicroSemi Switchtec management interface driver") Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Logan Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions