Craig Rodrigues 719fb72517 PR: 168520 170096
Submitted by: adrian, zec

Fix multiple kernel panics when VIMAGE is enabled in the kernel.
These fixes are based on patches submitted by Adrian Chadd and Marko Zec.

(1)  Set curthread->td_vnet to vnet0 in device_probe_and_attach() just before calling
     device_attach().  This fixes multiple VIMAGE related kernel panics
     when trying to attach Bluetooth or USB Ethernet devices because
     curthread->td_vnet is NULL.

(2)  Set curthread->td_vnet in if_detach().  This fixes kernel panics when detaching networking
     interfaces, especially USB Ethernet devices.

(3)  Use VNET_DOMAIN_SET() in ng_btsocket.c

(4)  In ng_unref_node() set curthread->td_vnet.  This fixes kernel panics
     when detaching Netgraph nodes.
2013-07-15 01:32:55 +00:00
..
2012-09-04 12:07:33 +00:00
2013-07-03 07:31:07 +00:00
2012-10-17 21:19:27 +00:00
2013-05-11 19:05:38 +00:00
2013-05-01 04:37:34 +00:00
2013-07-05 23:40:08 +00:00
2013-07-15 01:32:55 +00:00
2013-05-30 13:41:19 +00:00
2013-03-19 05:51:47 +00:00
2013-03-19 05:51:47 +00:00
2013-05-18 07:10:22 +00:00
2013-07-09 15:10:27 +00:00