]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ipv6: rpl_iptunnel: Fix potential memory leak in rpl_do_srh_inline
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 31 Mar 2020 16:35:06 +0000 (11:35 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2020 17:12:51 +0000 (10:12 -0700)
commit7f80ccfe996871ca69648efee74a60ae7ad0dcd9
treedfd01ce248e528cbed4965a14324e14b5885dc5a
parenta0190431d195f9e796f77eed8be90bebe0a4002b
net: ipv6: rpl_iptunnel: Fix potential memory leak in rpl_do_srh_inline

In case memory resources for buf were allocated, release them before
return.

Addresses-Coverity-ID: 1492011 ("Resource leak")
Fixes: a7a29f9c361f ("net: ipv6: add rpl sr tunnel")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/rpl_iptunnel.c