Message ID | CAKXUXMy=M42hapfG1S4ZT1v5WEdH2KYiF8Cgukmf48=FKFCyJg@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Potentially broken error path in bio_map_user_iov() | expand |
Hi Lukas, we can just remove the queue_dma_alignment check entirely, the caller already ensures bio_copy_user_iov is called instead of this case.
On Mon, Jan 3, 2022 at 5:35 PM Christoph Hellwig <hch@lst.de> wrote: > > Hi Lukas, > > we can just remove the queue_dma_alignment check entirely, the caller > already ensures bio_copy_user_iov is called instead of this case. Okay, I have sent you a patch to do so: https://lore.kernel.org/all/20220104120158.20177-1-lukas.bulwahn@gmail.com/ Feel free to pick it, reword it, rework it or ignore it. Lukas
diff --git a/block/blk-map.c b/block/blk-map.c index 4526adde0156..4a3f6703f46f 100644 --- a/block/blk-map.c +++ b/block/blk-map.c @@ -235,7 +235,7 @@ static int bio_map_user_iov(struct request *rq, struct iov_iter *iter, { unsigned int max_sectors = queue_max_hw_sectors(rq->q); struct bio *bio; - int ret; + int ret = 0; int j;