forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 093a6c67005148ae32a5c9e4553491b9f5c2457b
kernel/net/sctp/bind_addr.c
....@@ -73,6 +73,12 @@
7373 }
7474 }
7575
76
+ /* If somehow no addresses were found that can be used with this
77
+ * scope, it's an error.
78
+ */
79
+ if (list_empty(&dest->address_list))
80
+ error = -ENETUNREACH;
81
+
7682 out:
7783 if (error)
7884 sctp_bind_addr_clean(dest);