[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200618.200643.27869075586210896.davem@davemloft.net>
Date: Thu, 18 Jun 2020 20:06:43 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: yangyingliang@...wei.com
Cc: netdev@...r.kernel.org, weiyongjun1@...wei.com
Subject: Re: [PATCH net] net: fix memleak in register_netdevice()
From: Yang Yingliang <yangyingliang@...wei.com>
Date: Tue, 16 Jun 2020 09:39:21 +0000
> I got a memleak report when doing some fuzz test:
...
> If call_netdevice_notifiers() failed, then rollback_registered()
> calls netdev_unregister_kobject() which holds the kobject. The
> reference cannot be put because the netdev won't be add to todo
> list, so it will leads a memleak, we need put the reference to
> avoid memleak.
>
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Signed-off-by: Yang Yingliang <yangyingliang@...wei.com>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists