]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: Fix the type of index
authorClaire Chang <tientzu@chromium.org>
Thu, 22 Apr 2021 08:14:53 +0000 (16:14 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 27 Apr 2021 17:03:20 +0000 (17:03 +0000)
commita81c3326526b6e39b7fe0fee32d040cc850a3b8e
treef7330bb0dc76936d76320524d0f80c06dbe4ea4c
parentcb2327f56bf486d113458b9036278960ff419181
swiotlb: Fix the type of index

Fix the type of index from unsigned int to int since find_slots() might
return -1.

Fixes: 0249fb04a90c ("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>
kernel/dma/swiotlb.c