mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 02:20:51 +01:00
Don't core dump if we can't get the index automatically.
Debug info from: Ben Hockenhull <benh@jpj.net>
This commit is contained in:
parent
845bd795c9
commit
df306b2647
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84563
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user