Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2019 03:51:08 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r346803 - in stable: 11/sys/net 12/sys/net
Message-ID:  <201904280351.x3S3p8A1014330@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Sun Apr 28 03:51:08 2019
New Revision: 346803
URL: https://svnweb.freebsd.org/changeset/base/346803

Log:
  MFC r346688-r346689: tap(4) MODULE_VERSION
  
  r346688:
  tap(4): Add a MODULE_VERSION
  
  Otherwise tap(4) can be loaded by loader despite being compiled into the
  kernel, causing a panic as things try to double-initialize.
  
  r346689:
  tap(4): Correct driver name...
  
  PR:		220867

Modified:
  stable/11/sys/net/if_tap.c
Directory Properties:
  stable/11/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/12/sys/net/if_tap.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/11/sys/net/if_tap.c
==============================================================================
--- stable/11/sys/net/if_tap.c	Sun Apr 28 03:49:40 2019	(r346802)
+++ stable/11/sys/net/if_tap.c	Sun Apr 28 03:51:08 2019	(r346803)
@@ -175,6 +175,7 @@ SYSCTL_INT(_net_link_tap, OID_AUTO, devfs_cloning, CTL
 SYSCTL_INT(_net_link_tap, OID_AUTO, debug, CTLFLAG_RW, &tapdebug, 0, "");
 
 DEV_MODULE(if_tap, tapmodevent, NULL);
+MODULE_VERSION(if_tap, 1);
 
 static int
 tap_clone_create(struct if_clone *ifc, int unit, caddr_t params)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904280351.x3S3p8A1014330>