Date: Thu, 10 May 2018 20:27:12 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333471 - head/stand/common Message-ID: <201805102027.w4AKRCKE005809@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805102027.w4AKRCKE005809>