swiotlb: don't override user specified size in swiotlb_adjust_size
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Apr 2021 06:28:59 +0000 (08:28 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 29 Apr 2021 18:46:06 +0000 (18:46 +0000)
commitdfc06b389a4f54e78c03abecd5b42ab6ea8d492a
tree883c428c958faa90f88c7eb4b1b2822f7c51908a
parent95b079d8215b83b37fa59341fda92fcb9392f14a
swiotlb: don't override user specified size in swiotlb_adjust_size

If the user already specified a swiotlb size on the command line,
swiotlb_adjust_size should not overwrite it.

Fixes: 2cbc2776efe4 ("swiotlb: remove swiotlb_nr_tbl")
Reported-by: Tom Lendacky <thomas.lendacky@amd.com>
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c