diff options
author | lile <lile@FreeBSD.org> | 2000-03-19 15:08:39 +0000 |
---|---|---|
committer | lile <lile@FreeBSD.org> | 2000-03-19 15:08:39 +0000 |
commit | 5ba5b5b6b46bff8425d437c3cb46584b313eabe9 (patch) | |
tree | d7e8efa097500838f83dee2766cb63cdc71cbf96 /sys/contrib/dev/oltr | |
parent | 4b0a79c936c732fded1cf99547e964bfb8d2e280 (diff) | |
download | FreeBSD-src-5ba5b5b6b46bff8425d437c3cb46584b313eabe9.zip FreeBSD-src-5ba5b5b6b46bff8425d437c3cb46584b313eabe9.tar.gz |
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>
Diffstat (limited to 'sys/contrib/dev/oltr')
-rw-r--r-- | sys/contrib/dev/oltr/if_oltr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/contrib/dev/oltr/if_oltr.c b/sys/contrib/dev/oltr/if_oltr.c index 4c3d1a9..994e39e 100644 --- a/sys/contrib/dev/oltr/if_oltr.c +++ b/sys/contrib/dev/oltr/if_oltr.c @@ -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, |