On 05.09.24 21:07, Jan Kiszka wrote: > On 05.09.24 18:33, Bjorn Helgaas wrote: >>> + res = platform_get_resource_byname(pdev, IORESOURCE_MEM, >>> + ks_vmap_res[n]); >> >> Seems like we should check "res" for error before using it? > > Oh, unfinished constructions. In fact, devm_pci_remap_cfg_resource takes care of res == NULL. Jan -- Siemens AG, Technology Linux Expert Center