summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormaxv <maxv@NetBSD.org>2019-12-13 14:10:32 +0000
committermaxv <maxv@NetBSD.org>2019-12-13 14:10:32 +0000
commite136b2d002a5fbc317438f15eea4a0c266bf185b (patch)
treee9e9793944a12426c1c01b136223e926fda6b154 /sys/dev
parent95f19f645170191029673cc179699a4237685129 (diff)
Fix gross use-after-free. Found by a custom query on LGTM.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/if_urtwn.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/if_urtwn.c b/sys/dev/usb/if_urtwn.c
index d27a4505ebd..0aff57dc947 100644
--- a/sys/dev/usb/if_urtwn.c
+++ b/sys/dev/usb/if_urtwn.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_urtwn.c,v 1.77 2019/12/01 21:02:09 mlelstv Exp $ */
+/* $NetBSD: if_urtwn.c,v 1.78 2019/12/13 14:10:32 maxv Exp $ */
/* $OpenBSD: if_urtwn.c,v 1.42 2015/02/10 23:25:46 mpi Exp $ */
/*-
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.77 2019/12/01 21:02:09 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.78 2019/12/13 14:10:32 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -868,7 +868,6 @@ urtwn_task(void *arg)
}
if (urtwn_tx_beacon(sc, m, ic->ic_bss) != 0) {
- m_freem(m);
aprint_error_dev(sc->sc_dev, "could not send beacon");
}