summaryrefslogtreecommitdiffstats
path: root/net/ipv6/seg6.c
diff options
context:
space:
mode:
authorYueHaibing2018-05-26 13:15:48 +0200
committerDavid S. Miller2018-05-29 15:53:38 +0200
commitc1c9a3c9663b2e15176758626278792862f1ed32 (patch)
treea227c72136a62865d12af106a354c3bb522adb16 /net/ipv6/seg6.c
parentnet: bpfilter: make function bpfilter_mbox_request() static (diff)
downloadkernel-qcow2-linux-c1c9a3c9663b2e15176758626278792862f1ed32.tar.gz
kernel-qcow2-linux-c1c9a3c9663b2e15176758626278792862f1ed32.tar.xz
kernel-qcow2-linux-c1c9a3c9663b2e15176758626278792862f1ed32.zip
net: remove unnecessary genlmsg_cancel() calls
the message be freed immediately, no need to trim it back to the previous size. Inspired by commit 7a9b3ec1e19f ("nl80211: remove unnecessary genlmsg_cancel() calls") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/seg6.c')
-rw-r--r--net/ipv6/seg6.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv6/seg6.c b/net/ipv6/seg6.c
index 7f5621d09571..0fdf2a55e746 100644
--- a/net/ipv6/seg6.c
+++ b/net/ipv6/seg6.c
@@ -226,7 +226,6 @@ static int seg6_genl_get_tunsrc(struct sk_buff *skb, struct genl_info *info)
nla_put_failure:
rcu_read_unlock();
- genlmsg_cancel(msg, hdr);
free_msg:
nlmsg_free(msg);
return -ENOMEM;