Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/isibootd Fix "Cannot allocate memory" failure on am...
details: https://anonhg.NetBSD.org/src/rev/82c73fc6a4d7
branches: trunk
changeset: 980260:82c73fc6a4d7
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Jan 30 11:34:28 2021 +0000
description:
Fix "Cannot allocate memory" failure on amd64.
BIOCGBLEN ioctl of bpf(4) requires u_int, not size_t.
The problem is reported by Kenji Aoyama.
Should be pulled up to netbsd-9 and netbsd-8.
diffstat:
usr.sbin/isibootd/isibootd.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r fd2385f3c97a -r 82c73fc6a4d7 usr.sbin/isibootd/isibootd.c
--- a/usr.sbin/isibootd/isibootd.c Sat Jan 30 09:48:59 2021 +0000
+++ b/usr.sbin/isibootd/isibootd.c Sat Jan 30 11:34:28 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isibootd.c,v 1.3 2012/04/02 09:01:30 nisimura Exp $ */
+/* $NetBSD: isibootd.c,v 1.4 2021/01/30 11:34:28 tsutsui Exp $ */
/* Id: isiboot.c,v 1.2 1999/12/26 14:33:33 nisimura Exp */
/*-
@@ -364,7 +364,7 @@
struct ifreq ifr;
int fd;
u_int type;
- size_t buflen;
+ u_int buflen;
uint8_t dladdr[ETHER_ADDR_LEN], *buf;
#ifdef BIOCIMMEDIATE
u_int flag;
Home |
Main Index |
Thread Index |
Old Index