aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-08-26 22:25:52 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 18:18:19 -0400
commite5d679f33900c71d1a76ba07c5b04055abd34480 (patch)
treefb581f7156870056dbb91feaab9d3dd22fdcf61e /net/xfrm/xfrm_policy.c
parentff5dfe736dd9f6c74b206aa77c0465dfd503bdb9 (diff)
[NET]: Use SLAB_PANIC
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r--net/xfrm/xfrm_policy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index 1cf3209cdf4b..7db1c48537f0 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -1985,10 +1985,8 @@ static void __init xfrm_policy_init(void)
1985 1985
1986 xfrm_dst_cache = kmem_cache_create("xfrm_dst_cache", 1986 xfrm_dst_cache = kmem_cache_create("xfrm_dst_cache",
1987 sizeof(struct xfrm_dst), 1987 sizeof(struct xfrm_dst),
1988 0, SLAB_HWCACHE_ALIGN, 1988 0, SLAB_HWCACHE_ALIGN|SLAB_PANIC,
1989 NULL, NULL); 1989 NULL, NULL);
1990 if (!xfrm_dst_cache)
1991 panic("XFRM: failed to allocate xfrm_dst_cache\n");
1992 1990
1993 hmask = 8 - 1; 1991 hmask = 8 - 1;
1994 sz = (hmask+1) * sizeof(struct hlist_head); 1992 sz = (hmask+1) * sizeof(struct hlist_head);