]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitce4dc44679bf81a26f324251b4631c1eb25b869d
tree883c428c958faa90f88c7eb4b1b2822f7c51908a
parenta81c3326526b6e39b7fe0fee32d040cc850a3b8e
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: 6863eb4207eb ("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