From owner-freebsd-tokenring Sun Mar 19 2:26: 6 2000 Delivered-To: freebsd-tokenring@freebsd.org Received: from Draculina.otdel-1.org (Draculina.Otdel-1.ORG [195.230.65.30]) by hub.freebsd.org (Postfix) with ESMTP id B9E6D37B6AD; Sun, 19 Mar 2000 02:26:03 -0800 (PST) (envelope-from nms@otdel-1.org) Received: by Draculina.otdel-1.org (Postfix, from userid 1002) id 4FA5F178; Sun, 19 Mar 2000 13:26:01 +0300 (MSK) Date: Sun, 19 Mar 2000 13:26:01 +0300 From: Nikolai Saoukh 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-tokenring@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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