--- ./net/ipv4/xfrm_policy.c~ 2002-11-14 12:38:33.000000000 +0100 +++ ./net/ipv4/xfrm_policy.c 2002-11-14 12:38:33.000000000 +0100 @@ -192,7 +192,7 @@ read_lock(&xfrm_type_lock); type = xfrm_type_map[proto]; - if (type && !try_inc_mod_count(type->owner)) + if (type && !try_module_get(type->owner)) type = NULL; read_unlock(&xfrm_type_lock); return type; @@ -201,7 +201,7 @@ void xfrm_put_type(struct xfrm_type *type) { if (type->owner) - __MOD_DEC_USE_COUNT(type->owner); + module_put(type->owner); }