aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2022-05-23 11:33:26 +0300
committerMichael S. Tsirkin <[email protected]>2022-05-31 12:45:10 -0400
commitf4a8686ec7a34f940d36784872036fbacb1b4623 (patch)
treeebe14565c752fb92a0a906cee6058b5a57b4850b /tools/perf/scripts/python/bin/stackcollapse-record
parent1f97b9785076d32fbabb8fa23889f9969c84118d (diff)
vhost-vdpa: return -EFAULT on copy_to_user() failure
The copy_to_user() function returns the number of bytes remaining to be copied. However, we need to return a negative error code, -EFAULT, to the user. Fixes: 87f4c217413a ("vhost-vdpa: introduce uAPI to get the number of virtqueue groups") Fixes: e96ef636f154 ("vhost-vdpa: introduce uAPI to get the number of address spaces") Signed-off-by: Dan Carpenter <[email protected]> Message-Id: <YotG1vXKXXSayr63@kili> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Stefano Garzarella <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions