Bjoern A. Zeeb
8b529ca61e
Make sure the locally cached value of rt->rt_gateway stays stable,
...
even after dropping the reference and unlocking. Previously we
have dereferenced a NULL pointer (after r121765).
Simply unlocking after the block does not work either because of
lock ordering (see r121765) and in addition we would still hold
a pointer to something that might be gone by the time we access it.
Thus take a copy of the value rather than just caching the pointer.
PR: kern/151908
Submitted by: chenyl (netstar2008 126.com) (initial version)
MFC after: 2 weeks
2011-03-12 09:41:25 +00:00
..
2011-03-12 08:58:19 +00:00
2011-03-08 19:01:45 +00:00
2011-03-11 13:11:15 +00:00
2011-03-01 13:14:28 +00:00
2011-03-03 18:28:21 +00:00
2011-03-12 09:09:25 +00:00
2011-03-12 08:58:19 +00:00
2011-03-11 11:58:54 +00:00
2011-03-11 00:44:32 +00:00
2011-03-02 14:56:58 +00:00
2011-02-18 22:25:11 +00:00
2011-03-11 22:42:04 +00:00
2011-02-25 10:11:01 +00:00
2011-02-18 22:25:11 +00:00
2011-03-08 17:00:31 +00:00
2011-02-21 09:01:34 +00:00
2011-03-12 08:58:19 +00:00
2011-03-11 18:56:55 +00:00
2011-03-12 08:51:43 +00:00
2011-02-23 09:22:33 +00:00
2011-03-08 19:01:45 +00:00
2011-03-12 09:09:25 +00:00
2011-03-04 20:37:38 +00:00
2011-03-10 18:17:24 +00:00
2011-03-03 16:16:49 +00:00
2011-03-08 11:58:25 +00:00
2011-03-12 09:41:25 +00:00
2011-02-18 09:40:13 +00:00
2011-01-08 23:06:54 +00:00
2011-01-14 23:30:35 +00:00
2011-02-25 10:11:01 +00:00
2011-02-25 10:11:01 +00:00
2011-01-12 19:54:19 +00:00
2011-02-25 09:29:32 +00:00
2011-03-11 00:44:32 +00:00
2011-02-16 21:59:42 +00:00
2011-03-11 18:56:55 +00:00
2011-02-16 21:29:13 +00:00
2011-03-04 09:03:54 +00:00
2011-03-11 21:08:02 +00:00
2011-03-11 18:56:55 +00:00
2011-03-11 18:56:55 +00:00
2010-12-05 10:15:23 +00:00
2011-03-07 22:36:11 +00:00
2011-03-11 07:07:48 +00:00
2011-03-11 00:44:32 +00:00
2011-01-19 00:57:58 +00:00
2010-11-21 03:58:11 +00:00