diff options
author | Li RongQing <lirongqing@baidu.com> | 2019-02-11 14:32:20 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-27 12:08:58 +0300 |
commit | fd49ffa383b912b87ae11f571d24dc19e8f964b7 (patch) | |
tree | 4e6cc70edb2199996f2fe778fc5bfa99b5a6293f /net/ipv6/seg6.c | |
parent | 589503cb2486310b8609a720bd7e0034ebc1d764 (diff) | |
download | linux-fd49ffa383b912b87ae11f571d24dc19e8f964b7.tar.xz |
ipv6: propagate genlmsg_reply return code
[ Upstream commit d1f20798a119be71746949ba9b2e2ff330fdc038 ]
genlmsg_reply can fail, so propagate its return code
Fixes: 915d7e5e593 ("ipv6: sr: add code base for control plane support of SR-IPv6")
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv6/seg6.c')
-rw-r--r-- | net/ipv6/seg6.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv6/seg6.c b/net/ipv6/seg6.c index 8d0ba757a46c..9b2f272ca164 100644 --- a/net/ipv6/seg6.c +++ b/net/ipv6/seg6.c @@ -221,9 +221,7 @@ static int seg6_genl_get_tunsrc(struct sk_buff *skb, struct genl_info *info) rcu_read_unlock(); genlmsg_end(msg, hdr); - genlmsg_reply(msg, info); - - return 0; + return genlmsg_reply(msg, info); nla_put_failure: rcu_read_unlock(); |