Fedor Pchelkin 39d31edcf9 dma-mapping: benchmark: avoid needless copy_to_user if benchmark fails
[ Upstream commit f7c9ccaadffd13066353332c13d7e9bf73b8f92d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-11 12:49:20 +02:00
..
2023-09-05 11:01:47 -07:00
2024-06-27 13:49:13 +02:00
2023-08-30 08:17:35 -07:00
2023-08-30 09:16:56 -07:00
2023-11-28 17:19:40 +00:00
2024-06-12 11:12:52 +02:00
2023-09-19 13:21:33 -07:00
2024-06-12 11:12:52 +02:00
2023-06-28 16:05:21 -07:00
2023-08-15 15:26:17 -07:00