Re: [PATCH v4 01/18] PCI/P2PDMA: Do not tear down the allocate attribute on registration failure
| Newsgroups | org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <[email protected]> |
> From: Leon Romanovsky <[email protected]> > > pci_p2pdma_add_resource() installs pci_p2pdma_unmap_mappings() as a devres > action with the devres allocated p2p_pgmap as its data, and only then adds > the range to the pool: > > error = devm_add_action_or_reset(&pdev->dev, pci_p2pdma_unmap_mappings, > p2p_pgmap); > if (error) > goto pages_free; > > p2pdma = rcu_dereference_protected(pdev->p2pdma, 1); > error = gen_pool_add_owner(p2pdma->pool, ...); > if (error) > goto pages_free; > [ ... ] > > Tested-by: Tushar Dave <[email protected]> > Fixes: 7e9c7ef83d78 ("PCI/P2PDMA: Allow userspace VMA allocations through sysfs") > Fixes: f58ef9d1d135 ("PCI/P2PDMA: Separate the mmap() support from the core logic") > Signed-off-by: Leon Romanovsky <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1