mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-21 01:51:18 +00:00
net/mlx5e: Add missing release firmware call
[ Upstream commitd19987ccf5
] Once driver finishes flashing the firmware image, it should release it. Fixes:9c8bca2637
("mlx5: Move firmware flash implementation to devlink") Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Reviewed-by: Aya Levin <ayal@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
34310505d4
commit
cb8892f52e
1 changed files with 4 additions and 1 deletions
|
@ -23,7 +23,10 @@ static int mlx5_devlink_flash_update(struct devlink *devlink,
|
|||
if (err)
|
||||
return err;
|
||||
|
||||
return mlx5_firmware_flash(dev, fw, extack);
|
||||
err = mlx5_firmware_flash(dev, fw, extack);
|
||||
release_firmware(fw);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
static u8 mlx5_fw_ver_major(u32 version)
|
||||
|
|
Loading…
Reference in a new issue