Bjoern A. Zeeb
a29c7aeb2e
Several device drivers call if_alloc() and then do further checks and
...
will cal if_free() in case of conflict, error, ..
if_free() however sets the VNET instance from the ifp->if_vnet which
was not yet initialized but would only in if_attach(). Fix this by
setting the curvnet from where we allocate the interface in if_alloc().
if_attach() will later overwrite this as needed. We do not set the home_vnet
early on as we only want to prevent the if_free() panic but not change any
of the other housekeeping, e.g., triggered through ifioctl()s.
Reviewed by: brooks
Approved by: re (gjb)
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D7010
2016-06-29 05:21:25 +00:00
..
2016-05-17 12:52:31 +00:00
2015-07-31 20:25:54 +00:00
2016-04-15 17:30:33 +00:00
2016-04-21 19:57:40 +00:00
2016-05-03 18:05:43 +00:00
2016-05-03 18:05:43 +00:00
2016-03-28 18:25:54 +00:00
2016-06-07 04:51:50 +00:00
2015-11-06 15:33:27 +00:00
2015-08-12 20:21:04 +00:00
2016-06-02 17:51:29 +00:00
2016-05-03 18:05:43 +00:00
2016-04-15 17:30:33 +00:00
2016-06-21 13:48:49 +00:00
2016-05-03 18:05:43 +00:00
2016-06-22 12:53:10 +00:00
2016-06-21 13:48:49 +00:00
2015-09-05 05:33:20 +00:00
2016-06-21 13:48:49 +00:00
2016-06-21 13:48:49 +00:00
2015-11-25 07:31:59 +00:00
2016-06-21 13:48:49 +00:00
2016-06-06 10:13:48 +00:00
2016-06-02 17:51:29 +00:00
2016-06-02 17:51:29 +00:00
2016-04-10 23:07:00 +00:00
2015-09-10 05:59:39 +00:00
2016-04-10 23:07:00 +00:00
2016-06-02 17:51:29 +00:00
2016-06-21 13:48:49 +00:00
2016-04-06 04:58:20 +00:00
2016-05-03 18:05:43 +00:00
2016-06-02 17:51:29 +00:00
2016-06-21 13:48:49 +00:00
2015-10-03 09:15:23 +00:00
2015-04-21 10:35:23 +00:00
2016-02-01 17:41:21 +00:00
2016-05-03 18:05:43 +00:00
2016-05-03 18:05:43 +00:00
2015-12-16 09:18:20 +00:00
2015-10-21 19:56:16 +00:00
2016-05-19 13:52:12 +00:00
2016-05-24 11:47:14 +00:00
2015-05-02 20:37:40 +00:00
2016-06-23 21:07:15 +00:00
2016-06-06 09:51:58 +00:00
2016-06-21 13:48:49 +00:00
2016-06-07 04:51:50 +00:00
2016-06-29 05:21:25 +00:00
2016-06-06 09:51:58 +00:00
2016-05-18 04:35:58 +00:00
2016-06-07 20:26:00 +00:00
2016-05-18 04:35:58 +00:00
2016-02-29 03:54:51 +00:00
2016-05-19 16:28:05 +00:00
2016-05-18 04:35:58 +00:00
2016-06-07 15:07:00 +00:00
2016-06-07 15:07:00 +00:00
2016-06-07 15:07:00 +00:00
2016-06-03 13:57:10 +00:00
2016-06-03 13:57:10 +00:00
2015-07-10 05:51:36 +00:00
2015-07-10 05:51:36 +00:00
2016-06-21 13:48:49 +00:00
2015-11-17 14:39:33 +00:00
2016-06-23 21:34:38 +00:00
2016-04-26 20:27:17 +00:00
2016-01-25 06:33:15 +00:00
2016-04-20 02:01:45 +00:00
2016-01-25 06:33:15 +00:00
2016-04-15 17:30:33 +00:00
2016-03-24 07:54:56 +00:00
2016-06-21 13:48:49 +00:00
2016-06-06 12:49:47 +00:00
2016-05-03 18:05:43 +00:00
2015-08-28 05:58:16 +00:00
2016-06-03 13:57:10 +00:00
2015-12-28 09:26:07 +00:00
2016-05-03 18:05:43 +00:00
2016-06-21 13:48:49 +00:00
2016-06-21 13:48:49 +00:00