svn commit: r333471 - head/stand/common
Warner Losh
imp at FreeBSD.org
Thu May 10 20:27:13 UTC 2018
Author: imp
Date: Thu May 10 20:27:12 2018
New Revision: 333471
URL: https://svnweb.freebsd.org/changeset/base/333471
Log:
Revert r333365
Even though we don't use it, it appears something else requires it to
be != 0 to work. This breaks tftp boot in loader.efi, so revert until
that can be sorted out.
Modified:
head/stand/common/dev_net.c
Modified: head/stand/common/dev_net.c
==============================================================================
--- head/stand/common/dev_net.c Thu May 10 20:10:02 2018 (r333470)
+++ head/stand/common/dev_net.c Thu May 10 20:27:12 2018 (r333471)
@@ -190,6 +190,7 @@ net_open(struct open_file *f, ...)
}
netdev_opens++;
+ f->f_devdata = &netdev_sock;
return (error);
}
@@ -201,6 +202,9 @@ net_close(struct open_file *f)
if (debug)
printf("net_close: opens=%d\n", netdev_opens);
#endif
+
+ f->f_devdata = NULL;
+
return (0);
}
More information about the svn-src-all
mailing list