[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221025154003.686cb8b1@kernel.org>
Date: Tue, 25 Oct 2022 15:40:03 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Aurelien Aptel <aaptel@...dia.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, edumazet@...gle.com,
pabeni@...hat.com, saeedm@...dia.com, tariqt@...dia.com,
leon@...nel.org, linux-nvme@...ts.infradead.org, sagi@...mberg.me,
hch@....de, kbusch@...nel.org, axboe@...com, chaitanyak@...dia.com,
smalin@...dia.com, ogerlitz@...dia.com, yorayz@...dia.com,
borisp@...dia.com, aurelien.aptel@...il.com, malin1024@...il.com
Subject: Re: [PATCH v7 02/23] iov_iter: DDP copy to iter/pages
On Tue, 25 Oct 2022 16:59:37 +0300 Aurelien Aptel wrote:
> Signed-off-by: Ben Ben-Ishay <benishay@...dia.com>
> Signed-off-by: Boris Pismenny <borisp@...dia.com>
> Signed-off-by: Or Gerlitz <ogerlitz@...dia.com>
> Signed-off-by: Yoray Zack <yorayz@...dia.com>
> Signed-off-by: Shai Malin <smalin@...dia.com>
> Signed-off-by: Aurelien Aptel <aaptel@...dia.com>
Great stuff :) Please get someone who matters to ack this.
> Reviewed-by: Chaitanya Kulkarni <kch@...dia.com>
> ---
> lib/iov_iter.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/iov_iter.c b/lib/iov_iter.c
> index c3ca28ca68a6..75470a4b8ab3 100644
> --- a/lib/iov_iter.c
> +++ b/lib/iov_iter.c
> @@ -526,7 +526,7 @@ size_t _copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i)
> might_fault();
> iterate_and_advance(i, bytes, base, len, off,
> copyout(base, addr + off, len),
> - memcpy(base, addr + off, len)
> + (base != addr + off) && memcpy(base, addr + off, len)
Powered by blists - more mailing lists