net: Must move the socket into unconnected
authorAlan Cox <alan@linux.intel.com>
Tue, 12 Jan 2016 23:17:56 +0000 (23:17 +0000)
committerAlan Cox <alan@linux.intel.com>
Tue, 12 Jan 2016 23:17:56 +0000 (23:17 +0000)
Kernel/dev/net/net_at.c

index 031c472..51fe621 100644 (file)
@@ -96,6 +96,7 @@ int net_init(struct socket *s)
     udata.u_error = EPFNOSUPPORT;
     return -1;
   }
+  s->s_state = SS_UNCONNECTED;
   return 0;
 }