Thread (4 messages) 4 messages, 3 authors, 2024-06-25

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

From: Konstantin Taranov <kotaranov@microsoft.com>
Date: 2024-06-25 09:41:24
Also in: linux-hyperv, lkml

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.

Signed-off-by: Ma Ke <redacted>
---
Changes in v2:
- streamlined the patch according suggestions;
- revised the description.
The change is ok, but the commit message is missing a "Fixes" tag/line.
- Konstantin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help