Re: [PATCH net] netrom: fix sleep in atomic context bugs in timer handlers

From: duoming
Date: Mon Jul 25 2022 - 23:20:59 EST


Hello,

On Mon, 25 Jul 2022 19:49:30 -0700 Jakub Kicinski wrote:

> On Sat, 23 Jul 2022 11:56:46 +0800 Duoming Zhou wrote:
> > Fixes: eafff86d3bd8 ("[NETROM]: Use kmemdup")
>
> That's not a correct Fixes tag, acme just swapped kmalloc for kmemdup().
> The allocate flags did not change.

Thanks for your time and reply!

The correct Fixes tag is "Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")".
The following is the code:

https://elixir.bootlin.com/linux/v2.6.12-rc2/source/net/netrom/nr_route.c#L158

...
if ((nr_neigh->digipeat = kmalloc(sizeof(*ax25_digi), GFP_KERNEL)) == NULL) {
...

Best regards,
Duoming Zhou