|
|
| version 1.1, 2004/02/10 07:55:45 | version 1.2, 2004/03/15 17:15:18 |
|---|---|
| Line 769 pccard_parse_cis_tuple(struct pccard_tup | Line 769 pccard_parse_cis_tuple(struct pccard_tup |
| } | } |
| if ((state->pf == NULL) || (state->gotmfc == 2)) { | if ((state->pf == NULL) || (state->gotmfc == 2)) { |
| state->pf = malloc(sizeof(*state->pf), M_DEVBUF, | state->pf = malloc(sizeof(*state->pf), M_DEVBUF, |
| M_NOWAIT | M_ZERO); | M_INTWAIT | M_ZERO); |
| state->pf->number = state->count++; | state->pf->number = state->count++; |
| state->pf->last_config_index = -1; | state->pf->last_config_index = -1; |
| STAILQ_INIT(&state->pf->cfe_head); | STAILQ_INIT(&state->pf->cfe_head); |
| Line 817 pccard_parse_cis_tuple(struct pccard_tup | Line 817 pccard_parse_cis_tuple(struct pccard_tup |
| } | } |
| if (state->pf == NULL) { | if (state->pf == NULL) { |
| state->pf = malloc(sizeof(*state->pf), | state->pf = malloc(sizeof(*state->pf), |
| M_DEVBUF, M_NOWAIT | M_ZERO); | M_DEVBUF, M_INTWAIT | M_ZERO); |
| state->pf->number = state->count++; | state->pf->number = state->count++; |
| state->pf->last_config_index = -1; | state->pf->last_config_index = -1; |
| STAILQ_INIT(&state->pf->cfe_head); | STAILQ_INIT(&state->pf->cfe_head); |
| Line 887 pccard_parse_cis_tuple(struct pccard_tup | Line 887 pccard_parse_cis_tuple(struct pccard_tup |
| * with the current default | * with the current default |
| */ | */ |
| if (num != state->default_cfe->number) { | if (num != state->default_cfe->number) { |
| cfe = (struct pccard_config_entry *) | cfe = malloc(sizeof(*cfe), M_DEVBUF, M_INTWAIT); |
| malloc(sizeof(*cfe), M_DEVBUF, M_NOWAIT); | |
| *cfe = *state->default_cfe; | *cfe = *state->default_cfe; |