Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-24 Thread Greg Kroah-Hartman
On Sun, May 24, 2020 at 03:28:12PM +0200, Greg Kroah-Hartman wrote: > On Sun, May 24, 2020 at 03:14:05PM +0200, Greg Kroah-Hartman wrote: > > On Sun, May 24, 2020 at 02:57:27PM +0200, Greg Kroah-Hartman wrote: > > > On Sat, May 23, 2020 at 08:44:06AM -0700, Randy Dunlap wrote: > > > > On 5/23/20

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-24 Thread Greg Kroah-Hartman
On Sun, May 24, 2020 at 03:14:05PM +0200, Greg Kroah-Hartman wrote: > On Sun, May 24, 2020 at 02:57:27PM +0200, Greg Kroah-Hartman wrote: > > On Sat, May 23, 2020 at 08:44:06AM -0700, Randy Dunlap wrote: > > > On 5/23/20 8:36 AM, Greg Kroah-Hartman wrote: > > > > On Wed, May 13, 2020 at 06:18:40PM

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-24 Thread Greg Kroah-Hartman
On Sun, May 24, 2020 at 02:57:27PM +0200, Greg Kroah-Hartman wrote: > On Sat, May 23, 2020 at 08:44:06AM -0700, Randy Dunlap wrote: > > On 5/23/20 8:36 AM, Greg Kroah-Hartman wrote: > > > On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > > >> In the function kobject_cleanup(),

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-24 Thread Greg Kroah-Hartman
On Sat, May 23, 2020 at 08:44:06AM -0700, Randy Dunlap wrote: > On 5/23/20 8:36 AM, Greg Kroah-Hartman wrote: > > On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > >> In the function kobject_cleanup(), kobject_del(kobj) is > >> called before the kobj->release(). That makes it

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-24 Thread Greg Kroah-Hartman
On Sat, May 23, 2020 at 12:04:30PM -0700, Dmitry Torokhov wrote: > On Sat, May 23, 2020 at 8:48 AM Randy Dunlap wrote: > > > > On 5/23/20 8:36 AM, Greg Kroah-Hartman wrote: > > > On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > > >> In the function kobject_cleanup(),

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-23 Thread Dmitry Torokhov
On Sat, May 23, 2020 at 8:48 AM Randy Dunlap wrote: > > On 5/23/20 8:36 AM, Greg Kroah-Hartman wrote: > > On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > >> In the function kobject_cleanup(), kobject_del(kobj) is > >> called before the kobj->release(). That makes it possible to

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-23 Thread Randy Dunlap
On 5/23/20 8:36 AM, Greg Kroah-Hartman wrote: > On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: >> In the function kobject_cleanup(), kobject_del(kobj) is >> called before the kobj->release(). That makes it possible to >> release the parent of the kobject before the kobject

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-23 Thread Greg Kroah-Hartman
On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > In the function kobject_cleanup(), kobject_del(kobj) is > called before the kobj->release(). That makes it possible to > release the parent of the kobject before the kobject itself. > > To fix that, adding function __kboject_del()

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-23 Thread Greg Kroah-Hartman
On Sat, May 23, 2020 at 06:21:01AM -0700, Guenter Roeck wrote: > On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > > In the function kobject_cleanup(), kobject_del(kobj) is > > called before the kobj->release(). That makes it possible to > > release the parent of the kobject

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-23 Thread Guenter Roeck
On Sat, May 23, 2020 at 06:21:01AM -0700, Guenter Roeck wrote: > On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > > In the function kobject_cleanup(), kobject_del(kobj) is > > called before the kobj->release(). That makes it possible to > > release the parent of the kobject

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-23 Thread Guenter Roeck
On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > In the function kobject_cleanup(), kobject_del(kobj) is > called before the kobj->release(). That makes it possible to > release the parent of the kobject before the kobject itself. > > To fix that, adding function __kboject_del()

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-15 Thread Greg Kroah-Hartman
On Thu, May 14, 2020 at 09:54:15AM +0300, Heikki Krogerus wrote: > On Wed, May 13, 2020 at 04:14:51PM -0700, Randy Dunlap wrote: > > On 5/13/20 2:30 PM, Brendan Higgins wrote: > > > On Wed, May 13, 2020 at 8:18 AM Heikki Krogerus > > > wrote: > > >> > > >> In the function kobject_cleanup(),

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-14 Thread Heikki Krogerus
On Wed, May 13, 2020 at 04:14:51PM -0700, Randy Dunlap wrote: > On 5/13/20 2:30 PM, Brendan Higgins wrote: > > On Wed, May 13, 2020 at 8:18 AM Heikki Krogerus > > wrote: > >> > >> In the function kobject_cleanup(), kobject_del(kobj) is > >> called before the kobj->release(). That makes it

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-13 Thread Randy Dunlap
On 5/13/20 2:30 PM, Brendan Higgins wrote: > On Wed, May 13, 2020 at 8:18 AM Heikki Krogerus > wrote: >> >> In the function kobject_cleanup(), kobject_del(kobj) is >> called before the kobj->release(). That makes it possible to >> release the parent of the kobject before the kobject itself. >> >>

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-13 Thread Brendan Higgins
On Wed, May 13, 2020 at 8:18 AM Heikki Krogerus wrote: > > In the function kobject_cleanup(), kobject_del(kobj) is > called before the kobj->release(). That makes it possible to > release the parent of the kobject before the kobject itself. > > To fix that, adding function __kboject_del() that

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-13 Thread Randy Dunlap
On 5/13/20 1:18 PM, Brendan Higgins wrote: > On Wed, May 13, 2020 at 8:18 AM Heikki Krogerus > wrote: >> >> In the function kobject_cleanup(), kobject_del(kobj) is >> called before the kobj->release(). That makes it possible to >> release the parent of the kobject before the kobject itself. >> >>

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-13 Thread Brendan Higgins
On Wed, May 13, 2020 at 8:18 AM Heikki Krogerus wrote: > > In the function kobject_cleanup(), kobject_del(kobj) is > called before the kobj->release(). That makes it possible to > release the parent of the kobject before the kobject itself. > > To fix that, adding function __kboject_del() that

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-13 Thread Rafael J. Wysocki
On Wed, May 13, 2020 at 5:42 PM Greg Kroah-Hartman wrote: > > On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > > In the function kobject_cleanup(), kobject_del(kobj) is > > called before the kobj->release(). That makes it possible to > > release the parent of the kobject before

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-13 Thread Greg Kroah-Hartman
On Wed, May 13, 2020 at 06:18:40PM +0300, Heikki Krogerus wrote: > In the function kobject_cleanup(), kobject_del(kobj) is > called before the kobj->release(). That makes it possible to > release the parent of the kobject before the kobject itself. > > To fix that, adding function __kboject_del()

Re: [PATCH] kobject: Make sure the parent does not get released before its children

2020-05-13 Thread Rafael J. Wysocki
On Wed, May 13, 2020 at 5:18 PM Heikki Krogerus wrote: > > In the function kobject_cleanup(), kobject_del(kobj) is > called before the kobj->release(). That makes it possible to > release the parent of the kobject before the kobject itself. > > To fix that, adding function __kboject_del() that

[PATCH] kobject: Make sure the parent does not get released before its children

2020-05-13 Thread Heikki Krogerus
In the function kobject_cleanup(), kobject_del(kobj) is called before the kobj->release(). That makes it possible to release the parent of the kobject before the kobject itself. To fix that, adding function __kboject_del() that does everything that kobject_del() does except release the parent