Re: [PATCH v3] net: mana: Fix possible double free in error handling path

2024-06-27 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Paolo Abeni : On Tue, 25 Jun 2024 21:03:14 +0800 you wrote: > When auxiliary_device_add() returns error and then calls > auxiliary_device_uninit(), callback function adev_release > calls kfree(madev). We shouldn't call kfree(madev) again >

[PATCH v3] net: mana: Fix possible double free in error handling path

2024-06-25 Thread Ma Ke
When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function adev_release calls kfree(madev). We shouldn't call kfree(madev) again in the error handling path. Set 'madev' to NULL. Fixes: a69839d4327d ("net: mana: Add support for auxiliary device") Signed-of