Commit 9768b44c authored by David S. Miller's avatar David S. Miller

[NET]: Fix xfrm policy locking.

parent ef95b6d2
......@@ -192,7 +192,7 @@ struct xfrm_type *xfrm_get_type(u8 proto)
type = xfrm_type_map[proto];
if (type && !try_inc_mod_count(type->owner))
type = NULL;
write_unlock(&xfrm_type_lock);
read_unlock(&xfrm_type_lock);
return type;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment