Re: [PATCH v2] scsi: fix WARNING in scsi_alloc_sgtables
From: Bart Van Assche
Date: Fri Jul 22 2022 - 17:09:12 EST
On 7/19/22 19:51, Jason Yan wrote:
When iovec_count is non-zero and dxfer_len is zero, the sg_io() just
genarated a null bio, and finally caused a warning below. To fix it,
skip generating a bio for this request if dxfer_len is zero.
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>