mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
If last state was supended, remove the card. This is a kludge, there
is a race here that the old code didn't deal with, and I'm not completely sure this is the right way to solve it, but it works here. Should get rid of the dreaded "No free configuration for card" message.
This commit is contained in:
parent
368a9f3acb
commit
f077fb2703
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54290
@ -149,6 +149,9 @@ slot_change(struct slot *sp)
|
||||
card_removed(sp);
|
||||
break;
|
||||
case filled:
|
||||
/* KLUDGE: if we were suspended, remove card */
|
||||
if (state.laststate == suspend)
|
||||
card_removed(sp);
|
||||
card_inserted(sp);
|
||||
break;
|
||||
case suspend:
|
||||
|
Loading…
Reference in New Issue
Block a user