commit | a01572e21f0941a1c8b7d39369fec3bd9b7e5e85 | [log] [tgz] |
---|---|---|
author | Claire Chang <tientzu@chromium.org> | Thu Apr 22 16:14:53 2021 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed May 19 10:13:04 2021 +0200 |
tree | 87a89ad87d91ade07e93da102cbecd110ddbb734 | |
parent | 04dad2ca1f5e460296b983d332cff642055c4def [diff] |
swiotlb: Fix the type of index [ Upstream commit 95b079d8215b83b37fa59341fda92fcb9392f14a ] Fix the type of index from unsigned int to int since find_slots() might return -1. Fixes: 26a7e094783d ("swiotlb: refactor swiotlb_tbl_map_single") Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Claire Chang <tientzu@chromium.org> Signed-off-by: Konrad Rzeszutek Wilk <konrad@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>