On Sun, Nov 11, 2018 at 10:03 PM David Gwynne <[email protected]> wrote: ...
> so like this? > ... > --- if_tun.c 24 Feb 2018 07:20:04 -0000 1.181 > +++ if_tun.c 12 Nov 2018 06:02:51 -0000 > @@ -193,6 +193,9 @@ tun_create(struct if_clone *ifc, int uni > struct tun_softc *tp; > struct ifnet *ifp; > > + if (unit > minor(~0U)) > + return (ENXIO); > I would be inclined to write minor(~(dev_t)0) Just In Case, but ok either way.
