Re: [PATCH v5] scsi: fill in DMA padding bytes in scsi_alloc_sgtables

Bart Van Assche <[email protected]>
Newsgroups org.kernel.vger.linux-scsi,org.kernel.vger.linux-kernel,org.kernel.vger.stable
Message-ID <[email protected]>
On 6/28/26 11:52 AM, Petr Vaganov wrote:
> Extend last_sg->length by pad_len first, then use sg_zero_buffer() to
> zero those pad_len bytes.  sg_zero_buffer() uses sg_miter internally,
> which correctly handles sg entries spanning multiple pages and padding
> that crosses a page boundary.

Reviewed-by: Bart Van Assche <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.