mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
ethtool: module: call ethnl_ops_complete() on module flash errors
When validate() fails we are skipping over ethnl_ops_complete()
even tho we already called ethnl_ops_begin().
Fixes: 32b4c8b53e ("ethtool: Add ability to flash transceiver modules' firmware")
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Danielle Ratson <danieller@nvidia.com>
Link: https://patch.msgid.link/20260522231312.1710836-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
a0bfd64397
commit
84371fb584
|
|
@ -427,10 +427,11 @@ int ethnl_act_module_fw_flash(struct sk_buff *skb, struct genl_info *info)
|
|||
|
||||
ret = ethnl_module_fw_flash_validate(dev, info->extack);
|
||||
if (ret < 0)
|
||||
goto out_unlock;
|
||||
goto out_complete;
|
||||
|
||||
ret = module_flash_fw(dev, tb, skb, info);
|
||||
|
||||
out_complete:
|
||||
ethnl_ops_complete(dev);
|
||||
|
||||
out_unlock:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user