Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Use if_ioctl() for changing MTU, not ether_ioctl to ...
details: https://anonhg.NetBSD.org/src/rev/219f6a59a15e
branches: trunk
changeset: 380030:219f6a59a15e
user: yamaguchi <yamaguchi%NetBSD.org@localhost>
date: Fri Jul 02 03:30:46 2021 +0000
description:
Use if_ioctl() for changing MTU, not ether_ioctl to prevent panic
Fix PR kern/56292
diffstat:
sys/net/if_bridge.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 45f973a7a24c -r 219f6a59a15e sys/net/if_bridge.c
--- a/sys/net/if_bridge.c Thu Jul 01 22:57:45 2021 +0000
+++ b/sys/net/if_bridge.c Fri Jul 02 03:30:46 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bridge.c,v 1.180 2021/06/16 00:21:19 riastradh Exp $ */
+/* $NetBSD: if_bridge.c,v 1.181 2021/07/02 03:30:46 yamaguchi Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.180 2021/06/16 00:21:19 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.181 2021/07/02 03:30:46 yamaguchi Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -861,7 +861,7 @@ bridge_ioctl_add(struct bridge_softc *sc
memset(&ifr, 0, sizeof(ifr));
ifr.ifr_mtu = sc->sc_if.if_mtu;
IFNET_LOCK(ifs);
- error = ether_ioctl(ifs, SIOCSIFMTU, &ifr);
+ error = ifs->if_ioctl(ifs, SIOCSIFMTU, &ifr);
IFNET_UNLOCK(ifs);
if (error != 0)
goto out;
Home |
Main Index |
Thread Index |
Old Index