Thread (7 messages) flat view 7 messages, 3 authors, 2021-05-13

Re: [PATCH] net: mdio: Fix a double free issue in the .remove function

From: Andrew Lunn <andrew@lunn.ch>
Date: 2021-05-12 22:23:13
Also in: kernel-janitors, lkml

On Wed, May 12, 2021 at 11:35:38PM +0200, Christophe JAILLET wrote:
'bus->mii_bus' have been allocated with 'devm_mdiobus_alloc_size()' in the
probe function. So it must not be freed explicitly or there will be a
double free.
Hi Christophe

[PATCH] net: mdio: Fix a double free issue in the .remove function

Please indicate in the subject which mdio bus driver has a double
free.

Also, octeon_mdiobus_remove() appears to have the same problem.

      Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help