diff options
author | phk <phk@FreeBSD.org> | 2003-01-28 12:10:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-01-28 12:10:11 +0000 |
commit | 09a3f98b178e2479a888892503e8ab0e967798c1 (patch) | |
tree | 5f861b04b89650aaf190debc4886178ab5beff0e /sys | |
parent | 4389d08cbdfc1490f76f5f373b5e35cf414b1b0a (diff) | |
download | FreeBSD-src-09a3f98b178e2479a888892503e8ab0e967798c1.zip FreeBSD-src-09a3f98b178e2479a888892503e8ab0e967798c1.tar.gz |
Band-XXX-aid an easy to provoke panic.
MFC: 2 weeks
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netatm/ipatm/ipatm_usrreq.c | 7 |
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; |