Don't feed anything but regular iovec's to blk_rq_map_user_iov
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Dec 2016 00:18:14 +0000 (16:18 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Dec 2016 16:23:35 +0000 (08:23 -0800)
commita0ac402cfcdc904f9772e1762b3fda112dcc56a0
tree6d4a89d91174c334881d9224bfcf9752ae75c8d3
parentbc3913a5378cd0ddefd1dfec6917cc12eb23a946
Don't feed anything but regular iovec's to blk_rq_map_user_iov

In theory we could map other things, but there's a reason that function
is called "user_iov".  Using anything else (like splice can do) just
confuses it.

Reported-and-tested-by: Johannes Thumshirn <jthumshirn@suse.de>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
block/blk-map.c