From 033407794e8ff0df6f22e5fa7bc85790830883ae Mon Sep 17 00:00:00 2001 From: mpi Date: Wed, 15 Apr 2015 10:11:29 +0000 Subject: [PATCH] Fix a typo introduced in the niq_enqueue() conversion. Should fix a panic reported by many on bugs@ and misc@. ok dlg@ --- sys/net/if_tun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.20.1