dpll: zl3073x: Fix double free in zl3073x_devlink_flash_update()
Subsystems (5)
PATCH v2 1/1 dpll: zl3073x: Fix double free in zl3073x_devlink_flash_update()
The zl3073x_devlink_flash_prepare() function calls zl3073x_fw_free() and the caller, zl3073x_devlink_flash_update(), also calls that same free function so it leads to a double free. Delete the extra free.
---
v2: Fix the commit message. Words in wrong order == nonsense.
drivers/dpll/zl3073x/devlink.c | 1 - 1 file changed, 1 deletion(-)
drivers/dpll/zl3073x/devlink.c +0 -1
@@ -167,7 +167,6 @@ zl3073x_devlink_flash_prepare(struct zl3073x_dev *zldev,zl3073x_devlink_flash_notify (zldev,"Utility is missing in firmware" ,NULL ,0 ,0 ); -zl3073x_fw_free (zlfw);return -ENOEXEC ; }
Signature · 1 line
2.51.0
Quoted 4 lines · Dan Carpenter
The
zl3073x_devlink_flash_prepare()function callszl3073x_fw_free()and the caller,zl3073x_devlink_flash_update(), also calls that same free function so it leads to a double free. Delete the extra free.
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 10 lines · On Thu, 25 Sep 2025 16:28:13 +0300 you wrote:
The
zl3073x_devlink_flash_prepare()function callszl3073x_fw_free()and the caller,zl3073x_devlink_flash_update(), also calls that same free function so it leads to a double free. Delete the extra free.Fixes a1e891fe4ae8 ("dpll: zl3073x: Implement devlink flash callback")Signed-off-by Dan Carpenter <[email protected]>Reviewed-by Simon Horman <[email protected]>Reviewed-by Ivan Vecera <[email protected]>[...]
Here is the summary with links:
- [v2,net-next] dpll: zl3073x: Fix double free in zl3073x_devlink_flash_update()
https://git.kernel.org/netdev/net-next/c/347afa390427
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html