Thread (30 messages) 30 messages, 5 authors, 2024-06-24

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

From: Markus Elfring <hidden>
Date: 2024-06-14 08:38:21
Also in: bpf, dri-devel, linux-alpha, linux-arch, linux-doc, linux-kselftest, linux-media, linux-mips, linux-renesas-soc, linux-trace-kernel, lkml, sparclinux

quoted hunk ↗ jump to hunk
+++ b/net/core/netdev-genl.c
 int netdev_nl_bind_rx_doit(struct sk_buff *skb, struct genl_info *info)
 {
+	rtnl_lock();
+
+	netdev = __dev_get_by_index(genl_info_net(info), ifindex);
+err_unlock:
+	rtnl_unlock();
+	return err;
 }
…

Would you become interested to apply another lock guard?
https://elixir.bootlin.com/linux/v6.10-rc3/source/include/linux/cleanup.h#L124

Will scope-based resource management become more attractive
(also for the current source code adjustment)?

Regards,
Markus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help