Skip to content
Commit 0bd2fbee authored by YueHaibing's avatar YueHaibing Committed by Wei Liu
Browse files

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: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarMichael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20211227040311.54584-1-yuehaibing@huawei.com
Signed-off-by: default avatarWei Liu <wei.liu@kernel.org>
parent 2deb55d9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment