From: Eric Dumazet Date: Thu, 4 Feb 2016 14:23:28 +0000 (-0800) Subject: ipv4: fix memory leaks in ip_cmsg_send() callers X-Git-Tag: v3.2.80~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86f1994adf420f3b47409301eb225e77eafc5b12;p=pandora-kernel.git 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 Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed