Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci set NULL after free.
details: https://anonhg.NetBSD.org/src/rev/1dc6ae14bcb8
branches: trunk
changeset: 350301:1dc6ae14bcb8
user: nonaka <nonaka%NetBSD.org@localhost>
date: Tue Jan 10 04:27:04 2017 +0000
description:
set NULL after free.
diffstat:
sys/dev/pci/if_iwm.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r df96756d2bed -r 1dc6ae14bcb8 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c Tue Jan 10 04:27:02 2017 +0000
+++ b/sys/dev/pci/if_iwm.c Tue Jan 10 04:27:04 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_iwm.c,v 1.56 2017/01/09 12:45:49 nonaka Exp $ */
+/* $NetBSD: if_iwm.c,v 1.57 2017/01/10 04:27:04 nonaka Exp $ */
/* OpenBSD: if_iwm.c,v 1.148 2016/11/19 21:07:08 stsp Exp */
#define IEEE80211_NO_HT
/*
@@ -107,7 +107,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.56 2017/01/09 12:45:49 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.57 2017/01/10 04:27:04 nonaka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -1332,6 +1332,7 @@
data->map->dm_mapsize, BUS_DMASYNC_POSTWRITE);
bus_dmamap_unload(sc->sc_dmat, data->map);
m_freem(data->m);
+ data->m = NULL;
}
if (data->map != NULL) {
bus_dmamap_destroy(sc->sc_dmat, data->map);
Home |
Main Index |
Thread Index |
Old Index