swiotlb: Fix the type of index
stable inclusion from stable-5.10.38 commit a01572e21f0941a1c8b7d39369fec3bd9b7e5e85 bugzilla: 51875 CVE: NA -------------------------------- [ Upstream commit 95b079d8 ] Fix the type of index from unsigned int to int since find_slots() might return -1. Fixes: 26a7e094 ("swiotlb: refactor swiotlb_tbl_map_single") Reviewed-by: NChristoph Hellwig <hch@lst.de> Signed-off-by: NClaire Chang <tientzu@chromium.org> Signed-off-by: NKonrad Rzeszutek Wilk <konrad@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录