Date: Sun, 19 Mar 2000 13:26:01 +0300 From: Nikolai Saoukh <nms@otdel-1.org> To: lile@freebsd.org Cc: freebsd-tokenring@freebsd.org Subject: small typo in new-bus Olicom drover & bit of respect Message-ID: <20000319132600.A2368@Draculina.otdel-1.org>
next in thread | raw e-mail | index | archive | help
There is small typo (I hope so) in work memory allocation
Shall we respect Olicom and name OC-3540 as '... 100/16/4 ...'?
--- if_oltr.c.orig Sun Mar 19 13:18:02 2000
+++ if_oltr.c Sun Mar 19 13:19:28 2000
@@ -110,5 +110,5 @@
/* 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)"
};
@@ -400,5 +400,5 @@
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 {
@@ -767,5 +767,5 @@
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
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-tokenring" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000319132600.A2368>
