o Fix typo in the RapidFire 3540 adapter name
4/16/100 -> 100/16/4 so that it matches all of the others. o Since we went to all the trouble of getting the correct working memory size actually use it. * Submitted by: Nikolai Saoukh <nms@otdel-1.org>
This commit is contained in:
parent
c892ec24d8
commit
34b62638d9
@ -109,7 +109,7 @@ char *AdapterName[] = {
|
||||
/* 16 */ "Olicom PCMCIA 16/4 Adapter (OC-3220) [unsupported]",
|
||||
/* 17 */ "Olicom PCMCIA 16/4 Adapter (OC-3121, OC-3230, OC-3232) [unsupported]",
|
||||
/* 18 */ "Olicom PCMCIA 16/4 Adapter (OC-3250)",
|
||||
/* 19 */ "Olicom RapidFire 3540 4/16/100 Adapter (OC-3540)"
|
||||
/* 19 */ "Olicom RapidFire 3540 100/16/4 Adapter (OC-3540)"
|
||||
};
|
||||
|
||||
/*
|
||||
@ -399,7 +399,7 @@ oltr_pci_attach(device_t dev)
|
||||
}
|
||||
|
||||
if (work_size) {
|
||||
if ((sc->work_memory = malloc(32*1024, M_DEVBUF, M_NOWAIT)) == NULL) {
|
||||
if ((sc->work_memory = malloc(work_size, M_DEVBUF, M_NOWAIT)) == NULL) {
|
||||
device_printf(dev, "failed to allocate work memory.\n");
|
||||
} else {
|
||||
TRlldAddMemory(sc->TRlldAdapter, sc->work_memory,
|
||||
@ -766,7 +766,7 @@ oltr_pci_attach(pcici_t config_id, int unit)
|
||||
}
|
||||
|
||||
if (work_size)
|
||||
if ((sc->work_memory = malloc(32*1024, M_DEVBUF, M_NOWAIT)) == NULL)
|
||||
if ((sc->work_memory = malloc(work_size, M_DEVBUF, M_NOWAIT)) == NULL)
|
||||
printf("oltr%d: failed to allocate work memory.\n", unit);
|
||||
else
|
||||
TRlldAddMemory(sc->TRlldAdapter, sc->work_memory,
|
||||
|
Loading…
x
Reference in New Issue
Block a user