tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: socket locking KASSERT fired



While we are here, how about the appended patch?

best regards
Matthias





-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------
#
# old_revision [2dc410dda332edfb8ff67edba8905af354ac4900]
#
# patch "sys/kern/uipc_socket.c"
#  from [52b81314176cd90e5f8bc417f297b2879ba0dfc5]
#    to [e707bbe80b598d95f417b21530fba9d42f32fb22]
#
============================================================
--- sys/kern/uipc_socket.c      52b81314176cd90e5f8bc417f297b2879ba0dfc5
+++ sys/kern/uipc_socket.c      e707bbe80b598d95f417b21530fba9d42f32fb22
@@ -567,8 +567,10 @@ solisten(struct socket *so, int backlog,
 
        solock(so);
        if ((so->so_state & (SS_ISCONNECTED | SS_ISCONNECTING | 
-           SS_ISDISCONNECTING)) != 0)
+           SS_ISDISCONNECTING)) != 0) {
+               sounlock(so);
                return (EOPNOTSUPP);
+       }
        error = (*so->so_proto->pr_usrreq)(so, PRU_LISTEN, NULL,
            NULL, NULL, l);
        if (error != 0) {


Home | Main Index | Thread Index | Old Index