Commit 762674c1 authored by Claire Chang's avatar Claire Chang Committed by Greg Kroah-Hartman
Browse files

UPSTREAM: swiotlb: Fix the type of index



[ 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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarClaire Chang <tientzu@chromium.org>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
(cherry picked from commit a01572e2)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: I352263b74ff89334c1e3fd6f1b70e1c08b7f2b47
parent 26a8c2ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment