[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191119.171333.624799505921966746.davem@davemloft.net>
Date: Tue, 19 Nov 2019 17:13:33 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: jouni.hogander@...kie.com
Cc: netdev@...r.kernel.org, lukas.bulwahn@...il.com
Subject: Re: [PATCH] net-sysfs: Fix reference count leak in
rx|netdev_queue_add_kobject
From: jouni.hogander@...kie.com
Date: Tue, 19 Nov 2019 11:51:21 +0200
> kobject_init_and_add takes reference even when it fails.
I see this in the comment above kobject_init_and_add() but not in the
code.
Where does the implementation of kobject_init_and_add() actually take
such a reference?
Did you discover this by code inspection, or by an actual bug that was
triggered? If by an actual bug, please provide the OOPS and/or checker
trace that indicated a leak was happening here.
I don't see anything actually wrong here because kobject_init_and_add()
doesn't actually seem to do what it's comment suggests...
Powered by blists - more mailing lists