Re: [PATCH net] ax25: Fix refcount leak issues of ax25_dev
From: Lars Kellogg-Stedman <hidden>
Date: 2024-05-07 03:57:01
Also in:
linux-hams, lkml
From: Lars Kellogg-Stedman <hidden>
Date: 2024-05-07 03:57:01
Also in:
linux-hams, lkml
On Sat, May 04, 2024 at 06:16:14PM GMT, Lars Kellogg-Stedman wrote:
My original patch corrected this by adding the call to netdev_hold() right next to the ax25_cb_add() in ax25_rcv(), which solves this problem. If it seems weird to have this login in ax25_rcv, we could move it to ax25_accept, right around line 1430 [3]; that would look something like:
The same patch applies cleanly against the Raspberry Pi 6.6.30 kernel,
and clears up the frequeny crashes I was experiencing in that
environment as well.
--
Lars Kellogg-Stedman [off-list ref] | larsks @ {irc,twitter,github}
http://blog.oddbit.com/ | N1LKS