aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/xfrm/xfrm_user.c')
-rw-r--r--net/xfrm/xfrm_user.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c
index 5e52d6275bad..2ff968373f1c 100644
--- a/net/xfrm/xfrm_user.c
+++ b/net/xfrm/xfrm_user.c
@@ -1856,7 +1856,7 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
1856{ 1856{
1857 struct rtattr *xfrma[XFRMA_MAX]; 1857 struct rtattr *xfrma[XFRMA_MAX];
1858 struct xfrm_link *link; 1858 struct xfrm_link *link;
1859 int type, min_len, err; 1859 int type, min_len;
1860 1860
1861 type = nlh->nlmsg_type; 1861 type = nlh->nlmsg_type;
1862 if (type > XFRM_MSG_MAX) 1862 if (type > XFRM_MSG_MAX)
@@ -1875,10 +1875,7 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
1875 if (link->dump == NULL) 1875 if (link->dump == NULL)
1876 return -EINVAL; 1876 return -EINVAL;
1877 1877
1878 err = netlink_dump_start(xfrm_nl, skb, nlh, link->dump, NULL); 1878 return netlink_dump_start(xfrm_nl, skb, nlh, link->dump, NULL);
1879 if (err == 0)
1880 err = -EINTR;
1881 return err;
1882 } 1879 }
1883 1880
1884 memset(xfrma, 0, sizeof(xfrma)); 1881 memset(xfrma, 0, sizeof(xfrma));