Commit 0bd2fbe
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.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>1 parent 2deb55d commit 0bd2fbe
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1753 | 1753 | | |
1754 | 1754 | | |
1755 | 1755 | | |
1756 | | - | |
1757 | 1756 | | |
1758 | 1757 | | |
1759 | 1758 | | |
| |||
1826 | 1825 | | |
1827 | 1826 | | |
1828 | 1827 | | |
1829 | | - | |
1830 | 1828 | | |
1831 | 1829 | | |
1832 | 1830 | | |
1833 | 1831 | | |
1834 | 1832 | | |
1835 | | - | |
| 1833 | + | |
1836 | 1834 | | |
1837 | 1835 | | |
1838 | 1836 | | |
1839 | 1837 | | |
1840 | | - | |
| 1838 | + | |
1841 | 1839 | | |
1842 | 1840 | | |
1843 | 1841 | | |
| |||
0 commit comments