diff options
author | gavin <gavin@FreeBSD.org> | 2014-05-07 21:38:33 +0000 |
---|---|---|
committer | gavin <gavin@FreeBSD.org> | 2014-05-07 21:38:33 +0000 |
commit | d41ec318f9450a569a2d83b56c63243d8f513c51 (patch) | |
tree | af11e30137ca09e2c01cda3bffaad7ba298b02bd /lib/libc/stdio/stdio.c | |
parent | ff6061264f66e81c86ccd62cec9ceee03ecac27f (diff) | |
download | FreeBSD-src-d41ec318f9450a569a2d83b56c63243d8f513c51.zip FreeBSD-src-d41ec318f9450a569a2d83b56c63243d8f513c51.tar.gz |
Merge r259393 from head:
Fix several panics when initialization of an ISA or PC-CARD device fails:
o Assign sc->an_dev in an_probe() (which isn't really a probe function in
the standard newbus sense) as we may need it for printing errors.
o Use device_printf() rather than if_printf() in an_reset() - this is
called from an_probe() long before the ifp structure is initialised
in an_attach().
o Initialize the ifp structure early in an_attach() as we use if_printf()
in cases where allocation of descriptors etc fails.
Diffstat (limited to 'lib/libc/stdio/stdio.c')
0 files changed, 0 insertions, 0 deletions