[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220708164133.66325-1-kuniyu@amazon.com>
Date: Fri, 8 Jul 2022 09:41:33 -0700
From: Kuniyuki Iwashima <kuniyu@...zon.com>
To: <edumazet@...gle.com>
CC: <davem@...emloft.net>, <ebiederm@...ssion.com>,
<eric.dumazet@...il.com>, <kuba@...nel.org>, <kuniyu@...zon.com>,
<netdev@...r.kernel.org>, <pabeni@...hat.com>
Subject: [PATCH net] af_unix: fix unix_sysctl_register() error path
From: Eric Dumazet <edumazet@...gle.com>
Date: Fri, 8 Jul 2022 16:28:58 +0000
> We want to kfree(table) if @table has been kmalloced,
> ie for non initial network namespace.
>
> Fixes: 849d5aa3a1d8 ("af_unix: Do not call kmemdup() for init_net's sysctl table.")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Acked-by: Kuniyuki Iwashima <kuniyu@...zon.com>
Sorry for my carelessness and thank you for the fix!
Best regards,
Kuniyuki
Powered by blists - more mailing lists