]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
Merge r259393 from head:
authorgavin <gavin@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 7 May 2014 21:01:35 +0000 (21:01 +0000)
committergavin <gavin@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 7 May 2014 21:01:35 +0000 (21:01 +0000)
commitda46e64246a819a05d7ef1a8d826a59591fc5d50
treef2994aae86d3205a31108620d2fb56946bae67ad
parentc47ca6bce921b98b1f35f586e88678043e97f4ab
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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@265612 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/an/if_an.c
sys/dev/an/if_an_pccard.c