Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ieee1394 Avoid null pointer dereference.
details: https://anonhg.NetBSD.org/src/rev/8cc8451da883
branches: trunk
changeset: 509305:8cc8451da883
user: enami <enami%NetBSD.org@localhost>
date: Tue May 01 06:17:23 2001 +0000
description:
Avoid null pointer dereference.
diffstat:
sys/dev/ieee1394/fwohci.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r ca16fb27025c -r 8cc8451da883 sys/dev/ieee1394/fwohci.c
--- a/sys/dev/ieee1394/fwohci.c Tue May 01 06:15:42 2001 +0000
+++ b/sys/dev/ieee1394/fwohci.c Tue May 01 06:17:23 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fwohci.c,v 1.26 2001/05/01 06:15:42 enami Exp $ */
+/* $NetBSD: fwohci.c,v 1.27 2001/05/01 06:17:23 enami Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -2527,7 +2527,9 @@
iea = (struct ieee1394_softc *)
config_found(&sc->sc_sc1394.sc1394_dev, &fwa,
fwohci_print);
- LIST_INSERT_HEAD(&sc->sc_nodelist, iea, sc1394_node);
+ if (iea != NULL)
+ LIST_INSERT_HEAD(&sc->sc_nodelist, iea,
+ sc1394_node);
}
}
done = 1;
Home |
Main Index |
Thread Index |
Old Index