mbox series

[net,0/2] ax25: fix reference counting issue of ax25_dev

Message ID cover.1714660565.git.duoming@zju.edu.cn (mailing list archive)
Headers show
Series ax25: fix reference counting issue of ax25_dev | expand

Message

Duoming Zhou May 2, 2024, 2:43 p.m. UTC
The first patch changes kfree in ax25_dev_free to ax25_dev_free,
because the ax25_dev is managed by reference counting.

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

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(-)

Comments

Markus Elfring May 2, 2024, 8:01 p.m. UTC | #1
> The first patch changes kfree in ax25_dev_free to ax25_dev_free,

I find this description confusing.
Would you like to refer to a ax25_dev_put() call?


> because the ax25_dev is managed by reference counting.

How do you think about to link also to previous change approaches?

Regards,
Markus