diff options
author | Fedor Pchelkin <[email protected]> | 2024-05-04 14:47:02 +0300 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2024-05-23 15:06:47 +0200 |
commit | f7c9ccaadffd13066353332c13d7e9bf73b8f92d (patch) | |
tree | 90120e56ef675342f2a2081b99e2ece9897331c9 /lib/memory-notifier-error-inject.c | |
parent | bb9025f4432f8c158322cf2c04c2b492f23eb511 (diff) |
dma-mapping: benchmark: avoid needless copy_to_user if benchmark fails
If do_map_benchmark() has failed, there is nothing useful to copy back
to userspace.
Suggested-by: Barry Song <[email protected]>
Signed-off-by: Fedor Pchelkin <[email protected]>
Acked-by: Robin Murphy <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions