diff options
Diffstat (limited to 'kernel/block/blk-map.c')
-rw-r--r-- | kernel/block/blk-map.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/block/blk-map.c b/kernel/block/blk-map.c index f565e11f4..69953bd97 100644 --- a/kernel/block/blk-map.c +++ b/kernel/block/blk-map.c @@ -90,6 +90,9 @@ int blk_rq_map_user_iov(struct request_queue *q, struct request *rq, if (!iter || !iter->count) return -EINVAL; + if (!iter_is_iovec(iter)) + return -EINVAL; + iov_for_each(iov, i, *iter) { unsigned long uaddr = (unsigned long) iov.iov_base; |