summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c
diff options
context:
space:
mode:
authorPengcheng Yang <yangpc@wangsu.com>2024-10-25 11:45:44 +0300
committerJakub Kicinski <kuba@kernel.org>2024-11-01 04:22:48 +0300
commitcf44bd08cdeeeceb61a439f9dc437ded23adb75d (patch)
tree0987e4913aaf3354201300530899c0d70b166366 /drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c
parent5b1c965956744d9b22fae7e9bca1c8e72355e1d0 (diff)
downloadlinux-cf44bd08cdeeeceb61a439f9dc437ded23adb75d.tar.xz
tcp: only release congestion control if it has been initialized
Currently, when cleaning up congestion control, we always call the release regardless of whether it has been initialized. There is no need to release when closing TCP_LISTEN and TCP_CLOSE (close immediately after socket()). In this case, tcp_cdg calls kfree(NULL) in release without causing an exception, but for some customized ca, this could lead to unexpected exceptions. We need to ensure that init and release are called in pairs. Signed-off-by: Pengcheng Yang <yangpc@wangsu.com> Link: https://patch.msgid.link/1729845944-6003-1-git-send-email-yangpc@wangsu.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c')
0 files changed, 0 insertions, 0 deletions