Skip to content
Commit f7c9ccaa authored by Fedor Pchelkin's avatar Fedor Pchelkin Committed by Christoph Hellwig
Browse files

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: 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>
parent bb9025f4
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