[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191206.203932.877539573857084483.davem@davemloft.net>
Date: Fri, 06 Dec 2019 20:39:32 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: jouni.hogander@...kie.com
Cc: netdev@...r.kernel.org, penguin-kernel@...ove.SAKURA.ne.jp,
lukas.bulwahn@...il.com
Subject: Re: [PATCH] net-sysfs: Call dev_hold always in
netdev_queue_add_kobject
From: jouni.hogander@...kie.com
Date: Thu, 5 Dec 2019 15:57:07 +0200
> From: Jouni Hogander <jouni.hogander@...kie.com>
>
> Dev_hold has to be called always in netdev_queue_add_kobject.
> Otherwise usage count drops below 0 in case of failure in
> kobject_init_and_add.
>
> Fixes: b8eb718348b8 ("net-sysfs: Fix reference count leak in rx|netdev_queue_add_kobject")
> Reported-by: Hulk Robot <hulkci@...wei.com>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists