diff options
Diffstat (limited to 'net/key')
-rw-r--r-- | net/key/af_key.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index a0d849848ddd..ea7755ab7e6a 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c | |||
@@ -1739,6 +1739,7 @@ static int pfkey_flush(struct sock *sk, struct sk_buff *skb, struct sadb_msg *hd | |||
1739 | c.seq = hdr->sadb_msg_seq; | 1739 | c.seq = hdr->sadb_msg_seq; |
1740 | c.pid = hdr->sadb_msg_pid; | 1740 | c.pid = hdr->sadb_msg_pid; |
1741 | c.event = XFRM_MSG_FLUSHSA; | 1741 | c.event = XFRM_MSG_FLUSHSA; |
1742 | c.net = &init_net; | ||
1742 | km_state_notify(NULL, &c); | 1743 | km_state_notify(NULL, &c); |
1743 | 1744 | ||
1744 | return 0; | 1745 | return 0; |
@@ -2693,6 +2694,7 @@ static int pfkey_spdflush(struct sock *sk, struct sk_buff *skb, struct sadb_msg | |||
2693 | c.event = XFRM_MSG_FLUSHPOLICY; | 2694 | c.event = XFRM_MSG_FLUSHPOLICY; |
2694 | c.pid = hdr->sadb_msg_pid; | 2695 | c.pid = hdr->sadb_msg_pid; |
2695 | c.seq = hdr->sadb_msg_seq; | 2696 | c.seq = hdr->sadb_msg_seq; |
2697 | c.net = &init_net; | ||
2696 | km_policy_notify(NULL, 0, &c); | 2698 | km_policy_notify(NULL, 0, &c); |
2697 | 2699 | ||
2698 | return 0; | 2700 | return 0; |