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

Bart Van Assche <[email protected]> Fri, 7 Aug 2026 08:34:09 -0700
Newsgroups gmane.linux.kernel.stable,gmane.linux.scsi,gmane.linux.kernel
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]>