aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/bio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/bio.c b/fs/bio.c
index f95c8749499f..d91cfbf7ebc4 100644
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -622,10 +622,9 @@ static struct bio *__bio_map_user_iov(request_queue_t *q,
622 622
623 nr_pages += end - start; 623 nr_pages += end - start;
624 /* 624 /*
625 * transfer and buffer must be aligned to at least hardsector 625 * buffer must be aligned to at least hardsector size for now
626 * size for now, in the future we can relax this restriction
627 */ 626 */
628 if ((uaddr & queue_dma_alignment(q)) || (len & queue_dma_alignment(q))) 627 if (uaddr & queue_dma_alignment(q))
629 return ERR_PTR(-EINVAL); 628 return ERR_PTR(-EINVAL);
630 } 629 }
631 630