diff options
author | 2024-12-16 19:56:27 +0200 | |
---|---|---|
committer | 2025-02-18 15:40:54 -0600 | |
commit | b3281eb5ded17f88d7d4fa5fb39a709c195e56c2 (patch) | |
tree | f8f42956a84b8be3a157b5bb617b84847127f5e9 /lib/interval_tree_test.c | |
parent | PCI: Extend enable to check for any optional resource (diff) | |
download | wireguard-linux-b3281eb5ded17f88d7d4fa5fb39a709c195e56c2.tar.xz wireguard-linux-b3281eb5ded17f88d7d4fa5fb39a709c195e56c2.zip |
PCI: Always have realloc_head in __assign_resources_sorted()
Add a dummy list to always have a non-NULL realloc head in
__assign_resources_sorted() as it allows only checking list_empty().
In future, it would be good to ensure all callers provide a valid
realloc_head but that is relatively complex to do in practice and not
necessary for the subsequent optional resource handling fix.
Link: https://lore.kernel.org/r/20241216175632.4175-21-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Xiaochun Lee <lixc17@lenovo.com>
Diffstat (limited to 'lib/interval_tree_test.c')
0 files changed, 0 insertions, 0 deletions