diff options
author | Warner Losh <imp@FreeBSD.org> | 2001-10-05 20:38:32 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2001-10-05 20:38:32 +0000 |
commit | df306b264704053af039e7d1664342d77a6b66aa (patch) | |
tree | ed36d5889422a2d98791084e99d5654c8eafb18c /usr.sbin/pccard | |
parent | 845bd795c90254685ccf1591ff00b8871ac190c5 (diff) |
Don't core dump if we can't get the index automatically.
Debug info from: Ben Hockenhull <benh@jpj.net>
Notes
Notes:
svn path=/head/; revision=84563
Diffstat (limited to 'usr.sbin/pccard')
-rw-r--r-- | usr.sbin/pccard/pccardd/cardd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c index 7b27bab95fa9..9c8dff19662e 100644 --- a/usr.sbin/pccard/pccardd/cardd.c +++ b/usr.sbin/pccard/pccardd/cardd.c @@ -644,7 +644,8 @@ assign_io(struct slot *sp) break; case AUTO_INDEX: /* auto */ cisconf = assign_card_index(sp, cis); - sp->config->index = cisconf->id; + if (cisconf) + sp->config->index = cisconf->id; break; default: /* normal, use index value */ for (cisconf = cis->conf; cisconf; cisconf = cisconf->next) |