Skip to content
Commit ce39d857 authored by Fedor Pchelkin's avatar Fedor Pchelkin Committed by Greg Kroah-Hartman
Browse files

dma-mapping: benchmark: avoid needless copy_to_user if benchmark fails

[ Upstream commit f7c9ccaa

 ]

If do_map_benchmark() has failed, there is nothing useful to copy back
to userspace.

Suggested-by: default avatarBarry Song <21cnbao@gmail.com>
Signed-off-by: default avatarFedor Pchelkin <pchelkin@ispras.ru>
Acked-by: default avatarRobin Murphy <robin.murphy@arm.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d62da841
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment