kernel/netgraph: Add a missing lwkt_reltoken().
authorSascha Wildner <saw@online.de>
Sun, 1 Jan 2012 01:02:26 +0000 (02:02 +0100)
committerSascha Wildner <saw@online.de>
Sun, 1 Jan 2012 01:02:26 +0000 (02:02 +0100)
sys/netgraph/tty/ng_tty.c

index 5b18de5..681ec0f 100644 (file)
@@ -675,6 +675,7 @@ ngt_mod_event(module_t mod, int event, void *data)
                        crit_exit();
                        log(LOG_ERR, "%s: can't register line discipline",
                            __func__);
+                       lwkt_reltoken(&tty_token);
                        return (EIO);
                }
                crit_exit();