]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "ipv4: fix memory leaks in ip_cmsg_send() callers"
authorYajun Deng <yajun.deng@linux.dev>
Mon, 13 Sep 2021 04:04:42 +0000 (12:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Sep 2021 11:37:04 +0000 (12:37 +0100)
commit168508dc2278e7f9bfed0f3189d8d41bcb663e96
treeb924b7199a3ace19ae09cb97db9ef1173fce1b1d
parent48487f0fe706319e4351f852fa63f7ea6b925923
Revert "ipv4: fix memory leaks in ip_cmsg_send() callers"

This reverts commit 49587447b55d63cd1e97ce4a70011e2a512ead98.

There is only when ip_options_get() return zero need to free.
It already called kfree() when return error.

Fixes: 49587447b55d ("ipv4: fix memory leaks in ip_cmsg_send() callers")
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_sockglue.c
net/ipv4/ping.c
net/ipv4/raw.c
net/ipv4/udp.c