From: mpi Date: Wed, 15 Apr 2015 10:11:29 +0000 (+0000) Subject: Fix a typo introduced in the niq_enqueue() conversion. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=033407794e8ff0df6f22e5fa7bc85790830883ae;p=openbsd Fix a typo introduced in the niq_enqueue() conversion. Should fix a panic reported by many on bugs@ and misc@. ok dlg@ --- diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 542ba2d3883..c0e9ddcd2cb 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.136 2015/04/10 13:58:20 dlg Exp $ */ +/* $OpenBSD: if_tun.c,v 1.137 2015/04/15 10:11:29 mpi Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -897,7 +897,7 @@ tunwrite(dev_t dev, struct uio *uio, int ioflag) return (EAFNOSUPPORT); } - if (niq_enqueue(ifq, m) != 0) { + if (niq_enqueue(ifq, top) != 0) { ifp->if_collisions++; return (ENOBUFS); }