]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv4: fix memory leaks in ip_cmsg_send() callers
authorEric Dumazet <edumazet@google.com>
Thu, 4 Feb 2016 14:23:28 +0000 (06:23 -0800)
committerJiri Slaby <jslaby@suse.cz>
Wed, 2 Mar 2016 15:29:10 +0000 (16:29 +0100)
commitd1c560183199c55cfe50bd176dffdc16e5f55b6b
treed0b82f51681b271a8a9a581d9bda42e0188b4ae1
parent127e53abeede72da8d8d58b67b26f931737791ff
ipv4: fix memory leaks in ip_cmsg_send() callers

[ Upstream commit 919483096bfe75dda338e98d56da91a263746a0a ]

Dmitry reported memory leaks of IP options allocated in
ip_cmsg_send() when/if this function returns an error.

Callers are responsible for the freeing.

Many thanks to Dmitry for the report and diagnostic.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/ipv4/ip_sockglue.c
net/ipv4/ping.c
net/ipv4/raw.c
net/ipv4/udp.c