When auxiliary_device_add() returns error and then calls
auxiliary_device_uninit(), callback function adev_release
calls kfree(madev) to free memory. We shouldn't call kfree(padev)
again in the error handling path.
Signed-off-by: Ma Ke <make24@xxxxxxxxxxx>
---
drivers/net/ethernet/microsoft/mana/mana_en.c | 31 +++++++++----------
1 file changed, 14 insertions(+), 17 deletions(-)