summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-01-28 12:10:11 +0000
committerphk <phk@FreeBSD.org>2003-01-28 12:10:11 +0000
commit09a3f98b178e2479a888892503e8ab0e967798c1 (patch)
tree5f861b04b89650aaf190debc4886178ab5beff0e
parent4389d08cbdfc1490f76f5f373b5e35cf414b1b0a (diff)
downloadFreeBSD-src-09a3f98b178e2479a888892503e8ab0e967798c1.zip
FreeBSD-src-09a3f98b178e2479a888892503e8ab0e967798c1.tar.gz
Band-XXX-aid an easy to provoke panic.
MFC: 2 weeks
-rw-r--r--sys/netatm/ipatm/ipatm_usrreq.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/netatm/ipatm/ipatm_usrreq.c b/sys/netatm/ipatm/ipatm_usrreq.c
index 4860594..154f06b 100644
--- a/sys/netatm/ipatm/ipatm_usrreq.c
+++ b/sys/netatm/ipatm/ipatm_usrreq.c
@@ -238,7 +238,14 @@ ipatm_ioctl(code, data, arg1)
/*
* Notify the responsible ARP service
+ *
+ * XXX: if there is one. No idea how this happens, but at
+ * least don't panic on a NULL pointer if it does.
*/
+ if (inp->inf_serv == NULL) {
+ err = ENXIO;
+ break;
+ }
err = (*inp->inf_serv->is_ioctl)(code, data, inp->inf_isintf);
break;
OpenPOWER on IntegriCloud