scsi: storvsc: Fix unsigned comparison to zero
The unsigned variable sg_count is being assigned a return value from the call to scsi_dma_map() that can return -ENOMEM. Signed-off-by:YueHaibing <yuehaibing@huawei.com> Reviewed-by:
Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/20211227040311.54584-1-yuehaibing@huawei.comSigned-off-by:
Wei Liu <wei.liu@kernel.org>
Showing
Please register or sign in to comment