]> git.ipfire.org Git - thirdparty/linux.git/commit
ethtool: tsconfig: fix reply error handling
authorJakub Kicinski <kuba@kernel.org>
Tue, 26 May 2026 15:35:25 +0000 (08:35 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 May 2026 00:42:08 +0000 (17:42 -0700)
commita888bbd43940cada72f7686337741ce86d1cf869
treeaa38db33a443ede9528d13d08fd5b803b3cee311
parent7281b096b072f6c6e30420e3467d738f2e4c4b57
ethtool: tsconfig: fix reply error handling

A couple of trivial bugs in error handling in tsconfig_send_reply().
If we failed to allocate rskb we need to set the error.
If we did allocate it but failed to send it - we need to remember
to free it.

Fixes: 6e9e2eed4f39 ("net: ethtool: Add support for tsconfig command to get/set hwtstamp config")
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
Link: https://patch.msgid.link/20260526153533.2779187-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/tsconfig.c