forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/net/unix/scm.c
....@@ -8,6 +8,7 @@
88 #include <net/af_unix.h>
99 #include <net/scm.h>
1010 #include <linux/init.h>
11
+#include <linux/io_uring.h>
1112
1213 #include "scm.h"
1314
....@@ -33,6 +34,9 @@
3334 /* PF_UNIX ? */
3435 if (s && sock->ops && sock->ops->family == PF_UNIX)
3536 u_sock = s;
37
+ } else {
38
+ /* Could be an io_uring instance */
39
+ u_sock = io_uring_get_socket(filp);
3640 }
3741 return u_sock;
3842 }