]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: seg6_genl_set_tunsrc() must check kmemdup() return value
authorEric Dumazet <edumazet@google.com>
Fri, 20 Jan 2017 15:57:42 +0000 (07:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 16:07:48 +0000 (11:07 -0500)
commit4e73231e8c31ed3e61092184cfc27f1fdf7be8da
tree28e02e536cd1fe1982cae0dfd25c9b6604713c0c
parentc363bef8d6876b7bec93fea9e8d1f514c217f28a
ipv6: seg6_genl_set_tunsrc() must check kmemdup() return value

seg6_genl_get_tunsrc() and set_tun_src() do not handle tun_src being
possibly NULL, so we must check kmemdup() return value and abort if
it is NULL

Fixes: 3b41be5dd128 ("ipv6: sr: add code base for control plane support of SR-IPv6")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: David Lebrun <david.lebrun@uclouvain.be>
Acked-by: David Lebrun <david.lebrun@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/seg6.c