Re: [PATCH v4 4/7] PCI: keystone: Add supported for PVU-based DMA isolation on AM654

From: Jan Kiszka
Date: Fri Sep 06 2024 - 02:25:06 EST


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