diff mbox series

[RFC,v2,04/13] net: qrtr: tun: register inode as endpoint-specific data

Message ID c9644b9d169c22ccaed87b186ecca0bfc08129b0.1732506261.git.ionic@ionic.de (mailing list archive)
State Deferred
Delegated to: Kalle Valo
Headers show
Series ath1{1,2}k: support multiple PCI devices in one system | expand

Commit Message

Mihai Moldovan Nov. 25, 2024, 3:50 a.m. UTC
For the TUN backend, we will use the inode pointer as the
endpoint-specific data.

Signed-off-by: Mihai Moldovan <ionic@ionic.de>
---
 net/qrtr/tun.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/net/qrtr/tun.c b/net/qrtr/tun.c
index 304b41fea5ab..9dcfecd529f7 100644
--- a/net/qrtr/tun.c
+++ b/net/qrtr/tun.c
@@ -41,6 +41,7 @@  static int qrtr_tun_open(struct inode *inode, struct file *filp)
 	init_waitqueue_head(&tun->readq);
 
 	tun->ep.xmit = qrtr_tun_send;
+	tun->ep.endpoint_data = inode;
 
 	filp->private_data = tun;