Date: Fri, 29 Mar 2002 17:36:03 -0800 (PST) From: Marcel Moolenaar <marcel@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/boot/efi/libefi efifs.c Message-ID: <200203300136.g2U1a3586718@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2002/03/29 17:36:03 PST
Modified files:
sys/boot/efi/libefi efifs.c
Log:
Don't blindly dereference f->f_devdata as if it's always a pointer to
an efi_devdesc structure. When we're netbooting, f->f_devdata holds
the address of the network socket variable. Dereferencing this caused
some very unpredictable behaviour, including proper functioning.
So, as a sanity check, we first make sure f->f_dev points to our
own devsw. If not, the open will fail before we use f->f_devdata.
This solves the netboot hangs I invariably got whenever I used the
latest toolchain to compile the EFI loader.
Revision Changes Path
1.5 +6 -1 src/sys/boot/efi/libefi/efifs.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203300136.g2U1a3586718>
