dma-mapping: benchmark: avoid needless copy_to_user if benchmark fails
authorFedor Pchelkin <pchelkin@ispras.ru>
Sat, 4 May 2024 11:47:02 +0000 (14:47 +0300)
committerChristoph Hellwig <hch@lst.de>
Thu, 23 May 2024 13:06:47 +0000 (15:06 +0200)
commitf7c9ccaadffd13066353332c13d7e9bf73b8f92d
tree90120e56ef675342f2a2081b99e2ece9897331c9
parentbb9025f4432f8c158322cf2c04c2b492f23eb511
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 <21cnbao@gmail.com>
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/map_benchmark.c