Re: [PATCH net-next v16 03/13] netdev: support binding dma-buf to netdevice

From
Jakub Kicinski <kuba@kernel.org>
Date
2024-07-10 15:56:40
Also in
bpf, dri-devel, linux-alpha, linux-arch, linux-doc, linux-kselftest, linux-media, linux-mips, lkml, netdev, sparclinux
Reply to
Mina Almasry, 2024-07-10
On Wed, 10 Jul 2024 00:17:36 +0000 Mina Almasry wrote:
quoted hunk ↗ jump to hunk
+		err = gen_pool_add_owner(binding->chunk_pool, dma_addr,
+					 dma_addr, len, dev_to_node(&dev->dev),
+					 owner);
+		if (err) {
	kfree(owner);

right? If the insert fails gen_pool_for_each_chunk() won't see it
quoted hunk ↗ jump to hunk
+			err = -EINVAL;
+			goto err_free_chunks;
+		}
Thread (32 messages) 32 messages, 3 authors, last reply 2024-07-11
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help