X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=block%2Fblk-map.c;h=164cd0059706214e53c01b780b353fca98d9b829;hb=10ee08b7570dde2bac77d3f96eca2ce630a32b49;hp=e663ac2d8e68f70ff17ce274f3cebec16c1dd18c;hpb=007a14af2649c9ac77f38cd23469518ffb8b355a;p=linux-2.6-microblaze.git diff --git a/block/blk-map.c b/block/blk-map.c index e663ac2d8e68..164cd0059706 100644 --- a/block/blk-map.c +++ b/block/blk-map.c @@ -204,10 +204,11 @@ int blk_rq_map_user_iov(struct request_queue *q, struct request *rq, if (!iov[i].iov_len) return -EINVAL; - if (uaddr & queue_dma_alignment(q)) { + /* + * Keep going so we check length of all segments + */ + if (uaddr & queue_dma_alignment(q)) unaligned = 1; - break; - } } if (unaligned || (q->dma_pad_mask & len) || map_data)