[lvc-project] [PATCH v5] scsi: fill in DMA padding bytes in scsi_alloc_sgtables

Bart Van Assche bvanassche at acm.org
Fri Aug 7 18:34:09 MSK 2026


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 at acm.org>



More information about the lvc-project mailing list