Re: [PATCH v5] scsi: fill in DMA padding bytes in scsi_alloc_sgtables
From: Bart Van Assche
Date: Fri Aug 07 2026 - 12:06:22 EST
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 <bvanassche@xxxxxxx>