kernel - Use pool tokens to protect unix domain PCBs (2)
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 14 Sep 2012 17:13:39 +0000 (10:13 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 14 Sep 2012 17:13:39 +0000 (10:13 -0700)
* Fix mismatched token unlock in last commit.

sys/kern/uipc_usrreq.c

index d780bb9..8d3f16b 100644 (file)
@@ -1146,8 +1146,8 @@ unp_disconnect(struct unpcb *unp)
                break;
        }
        lwkt_relpooltoken(unp2);
-       lwkt_relpooltoken(unp);
 done:
+       lwkt_relpooltoken(unp);
        lwkt_reltoken(&unp_token);
 }