Commit 6386bd77 authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

ethtool: tsconfig: fix missing ethnl_ops_complete()



tsconfig_prepare_data() calls ethnl_ops_begin(), we need to call
ethnl_ops_complete() before returning the error.

Fixes: 6e9e2eed ("net: ethtool: Add support for tsconfig command to get/set hwtstamp config")
Reviewed-by: default avatarVadim Fedorenko <vadim.fedorenko@linux.dev>
Reviewed-by: default avatarKory Maincent <kory.maincent@bootlin.com>
Link: https://patch.msgid.link/20260526153533.2779187-6-kuba@kernel.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ab5bf428
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -69,8 +69,10 @@ static int tsconfig_prepare_data(const struct ethnl_req_info *req_base,
		if (ret)
			goto out;

		if (ts_info.phc_index == -1)
			return -ENODEV;
		if (ts_info.phc_index == -1) {
			ret = -ENODEV;
			goto out;
		}

		data->hwprov_desc.index = ts_info.phc_index;
		data->hwprov_desc.qualifier = ts_info.phc_qualifier;