mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Allow zero length memroy space descriptor sections. It is apparently
legal in the spec. Add newline to the verbose messages we print when debugging when this happens. The Hitachi HT-4840-11 is the only card to hit these in years, and it works well enough if we're liberal about what we accept.
This commit is contained in:
parent
3ca789f14a
commit
3ef22bdd2f
1 changed files with 2 additions and 4 deletions
|
|
@ -1198,8 +1198,7 @@ pccard_parse_cis_tuple(const struct pccard_tuple *tuple, void *arg)
|
|||
|
||||
if (lengthsize == 0) {
|
||||
DPRINTF(("cfe memspace "
|
||||
"lengthsize == 0"));
|
||||
state->card->error++;
|
||||
"lengthsize == 0\n"));
|
||||
}
|
||||
for (i = 0; i < cfe->num_memspace; i++) {
|
||||
if (lengthsize) {
|
||||
|
|
@ -1211,9 +1210,8 @@ pccard_parse_cis_tuple(const struct pccard_tuple *tuple, void *arg)
|
|||
cfe->memspace[i].length = 0;
|
||||
}
|
||||
if (cfe->memspace[i].length == 0) {
|
||||
DPRINTF(("cfe->memspace[%d].length == 0",
|
||||
DPRINTF(("cfe->memspace[%d].length == 0\n",
|
||||
i));
|
||||
state->card->error++;
|
||||
}
|
||||
if (cardaddrsize) {
|
||||
cfe->memspace[i].cardaddr =
|
||||
|
|
|
|||
Loading…
Reference in a new issue