]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit - sys/kern/subr_bus.c
MFC: r228209
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 29 Jan 2012 12:56:21 +0000 (12:56 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 29 Jan 2012 12:56:21 +0000 (12:56 +0000)
commit5126d427d83a6b6b7793004bf3bbfc382dcd9cba
tree41f6b3b2b083624e0fa433284d8f40cec49cedbd
parent7bef71bb8854722cb4591658ccd1ae270d66532c
MFC: r228209

- In device_probe_child(9) check the return value of device_set_driver(9)
  when actually setting a driver as especially ENOMEM is fatal in these
  cases.
- Annotate other calls to device_set_devclass(9) and device_set_driver(9)
  without the return value being checked and that are okay to fail.

Reviewed by: yongari (slightly earlier version)

git-svn-id: svn://svn.freebsd.org/base/stable/8@230739 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/subr_bus.c