diff options
| author | Christoph Hellwig <[email protected]> | 2022-05-11 06:13:57 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2022-05-13 10:49:18 +0000 |
| commit | a5e891321a219679d5a2828150a7dda29a47d8a6 (patch) | |
| tree | 0e002f243288f4fe04618ab50062f20e3b07ed72 /lib/lockref.c | |
| parent | swiotlb: don't panic when the swiotlb buffer can't be allocated (diff) | |
| download | kernel-a5e891321a219679d5a2828150a7dda29a47d8a6.tar.gz kernel-a5e891321a219679d5a2828150a7dda29a47d8a6.zip | |
swiotlb: use the right nslabs value in swiotlb_init_remap
default_nslabs should only be used to initialize nslabs, after that we
need to use the local variable that can shrink when allocations or the
remap don't succeed.
Fixes: 6424e31b1c05 ("swiotlb: remove swiotlb_init_with_tbl and swiotlb_init_late_with_tbl")
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Stefano Stabellini <[email protected]>
Diffstat (limited to 'lib/lockref.c')
0 files changed, 0 insertions, 0 deletions
