2024-05-02 23:36:54

by Duoming Zhou

[permalink] [raw]
Subject: [PATCH net v2 0/2] ax25: fix reference counting issue of ax25_dev

The first patch changes kfree in ax25_dev_free to ax25_dev_put,
because the ax25_dev is managed by reference counting.

The second patch fixes potential reference counting leak issue
in ax25_addr_ax25dev.

You can see the former discussion in the following link:
https://lore.kernel.org/netdev/[email protected]/

Duoming Zhou (2):
ax25: change kfree in ax25_dev_free to ax25_dev_free
ax25: fix potential reference counting leak in ax25_addr_ax25dev

net/ax25/ax25_dev.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

--
2.17.1



2024-05-03 05:10:54

by Dan Carpenter

[permalink] [raw]
Subject: Re: [PATCH net v2 0/2] ax25: fix reference counting issue of ax25_dev

On Fri, May 03, 2024 at 07:36:14AM +0800, Duoming Zhou wrote:
> The first patch changes kfree in ax25_dev_free to ax25_dev_put,
> because the ax25_dev is managed by reference counting.
>
> The second patch fixes potential reference counting leak issue
> in ax25_addr_ax25dev.
>
> You can see the former discussion in the following link:
> https://lore.kernel.org/netdev/[email protected]/
>

Reviewed-by: Dan Carpenter <[email protected]>

regards,
dan carpenter