mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
pcmcia: avoid validate_cis failure on CIS override
commitb83156b52dupstream. Commita8408c17introduced a new check to pccard_validate_cis(), which avoids any "late" calls to this function. This broke the insertion of cards which require a CIS override which changes the number of card functions. Fix this by asserting that this is _not_ a late call, but a proper call early during the card insertion process. Fixes https://bugzilla.kernel.org/show_bug.cgi?id=16138 Reported-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
91d5e7b11a
commit
cd495841c5
@@ -682,6 +682,7 @@ static void pcmcia_requery(struct pcmcia_socket *s)
|
||||
if (old_funcs != new_funcs) {
|
||||
/* we need to re-start */
|
||||
pcmcia_card_remove(s, NULL);
|
||||
s->functions = 0;
|
||||
pcmcia_card_add(s);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user