diff options
-rw-r--r-- | net/xfrm/xfrm_user.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index b43e7647e125..2dae1c1ea362 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -2060,6 +2060,9 @@ static int xfrm_notify_policy(struct xfrm_policy *xp, int dir, struct km_event * | |||
2060 | len += RTA_SPACE(headlen); | 2060 | len += RTA_SPACE(headlen); |
2061 | headlen = sizeof(*id); | 2061 | headlen = sizeof(*id); |
2062 | } | 2062 | } |
2063 | #ifdef CONFIG_XFRM_SUB_POLICY | ||
2064 | len += RTA_SPACE(sizeof(struct xfrm_userpolicy_type)); | ||
2065 | #endif | ||
2063 | len += NLMSG_SPACE(headlen); | 2066 | len += NLMSG_SPACE(headlen); |
2064 | 2067 | ||
2065 | skb = alloc_skb(len, GFP_ATOMIC); | 2068 | skb = alloc_skb(len, GFP_ATOMIC); |