rodrigc 7e3e1747c8 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
..
2013-07-14 18:26:47 +00:00
2013-07-15 00:05:27 +00:00
2013-07-15 01:32:55 +00:00
2013-07-09 19:01:38 +00:00
2013-07-15 01:32:55 +00:00
2013-07-15 01:32:55 +00:00
2013-06-01 12:21:59 +00:00
2013-04-17 11:45:15 +00:00
MFC
2013-02-21 21:59:35 +00:00
2013-06-18 06:55:58 +00:00
MFC
2013-03-13 01:05:42 +00:00