linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] cxl: Fix kobject memory leak in cxl_sysfs_afu_new_cr()
@ 2020-06-02 17:20 Markus Elfring
  2020-06-03  1:42 ` wanghai (M)
  0 siblings, 1 reply; 10+ messages in thread
From: Markus Elfring @ 2020-06-02 17:20 UTC (permalink / raw)
  To: Wang Hai, linuxppc-dev
  Cc: Andrew Donnellan, Arnd Bergmann, Frederic Barrat,
	Greg Kroah-Hartman, Ian Munsie, linux-kernel, kernel-janitors

> Fix it by adding a call to kobject_put() in the error path of
> kobject_init_and_add().

Thanks for another completion of the exception handling.

Would an other patch subject be a bit nicer?


…
> +++ b/drivers/misc/cxl/sysfs.c
> @@ -624,7 +624,7 @@ static struct afu_config_record *cxl_sysfs_afu_new_cr(struct cxl_afu *afu, int c
>  	rc = kobject_init_and_add(&cr->kobj, &afu_config_record_type,
>  				  &afu->dev.kobj, "cr%i", cr->cr);
>  	if (rc)
> -		goto err;
> +		goto err1;
…

Can an other label be more reasonable here?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?id=f359287765c04711ff54fbd11645271d8e5ff763#n465

Regards,
Markus

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] cxl: Fix kobject memory leak in cxl_sysfs_afu_new_cr()
  2020-06-02 17:20 [PATCH] cxl: Fix kobject memory leak in cxl_sysfs_afu_new_cr() Markus Elfring
@ 2020-06-03  1:42 ` wanghai (M)
  2020-06-03  3:02   ` Michael Ellerman
  2020-06-03  6:14   ` [PATCH] " Greg Kroah-Hartman
  0 siblings, 2 replies; 10+ messages in thread
From: wanghai (M) @ 2020-06-03  1:42 UTC (permalink / raw)
  To: Markus Elfring, linuxppc-dev
  Cc: Andrew Donnellan, Arnd Bergmann, Frederic Barrat,
	Greg Kroah-Hartman, Ian Munsie, linux-kernel, kernel-janitors


在 2020/6/3 1:20, Markus Elfring 写道:
>> Fix it by adding a call to kobject_put() in the error path of
>> kobject_init_and_add().
> Thanks for another completion of the exception handling.
>
> Would an other patch subject be a bit nicer?
Thanks for the guidance, I will perfect this description and send a v2
>
> …
>> +++ b/drivers/misc/cxl/sysfs.c
>> @@ -624,7 +624,7 @@ static struct afu_config_record *cxl_sysfs_afu_new_cr(struct cxl_afu *afu, int c
>>   	rc = kobject_init_and_add(&cr->kobj, &afu_config_record_type,
>>   				  &afu->dev.kobj, "cr%i", cr->cr);
>>   	if (rc)
>> -		goto err;
>> +		goto err1;
> …
>
> Can an other label be more reasonable here?
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?id=f359287765c04711ff54fbd11645271d8e5ff763#n465
I just used the original author's label, should I replace all his labels 
like'err','err1' with reasonable one.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] cxl: Fix kobject memory leak in cxl_sysfs_afu_new_cr()
  2020-06-03  1:42 ` wanghai (M)
@ 2020-06-03  3:02   ` Michael Ellerman
  2020-06-03  5:07     ` Markus Elfring
  2020-06-03  6:14   ` [PATCH] " Greg Kroah-Hartman
  1 sibling, 1 reply; 10+ messages in thread
From: Michael Ellerman @ 2020-06-03  3:02 UTC (permalink / raw)
  To: wanghai (M), Markus Elfring, linuxppc-dev
  Cc: Andrew Donnellan, Arnd Bergmann, Frederic Barrat,
	Greg Kroah-Hartman, Ian Munsie, linux-kernel, kernel-janitors

"wanghai (M)" <wanghai38@huawei.com> writes:
> 在 2020/6/3 1:20, Markus Elfring 写道:
>>> Fix it by adding a call to kobject_put() in the error path of
>>> kobject_init_and_add().
>> Thanks for another completion of the exception handling.
>>
>> Would an other patch subject be a bit nicer?
> Thanks for the guidance, I will perfect this description and send a v2
>>
>> …
>>> +++ b/drivers/misc/cxl/sysfs.c
>>> @@ -624,7 +624,7 @@ static struct afu_config_record *cxl_sysfs_afu_new_cr(struct cxl_afu *afu, int c
>>>   	rc = kobject_init_and_add(&cr->kobj, &afu_config_record_type,
>>>   				  &afu->dev.kobj, "cr%i", cr->cr);
>>>   	if (rc)
>>> -		goto err;
>>> +		goto err1;
>> …
>>
>> Can an other label be more reasonable here?
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?id=f359287765c04711ff54fbd11645271d8e5ff763#n465
> I just used the original author's label, should I replace all his labels 
> like'err','err1' with reasonable one.

No.

cheers

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cxl: Fix kobject memory leak in cxl_sysfs_afu_new_cr()
  2020-06-03  3:02   ` Michael Ellerman
@ 2020-06-03  5:07     ` Markus Elfring
  0 siblings, 0 replies; 10+ messages in thread
From: Markus Elfring @ 2020-06-03  5:07 UTC (permalink / raw)
  To: Michael Ellerman, Wang Hai, linuxppc-dev
  Cc: Andrew Donnellan, Arnd Bergmann, Frederic Barrat,
	Greg Kroah-Hartman, Ian Munsie, linux-kernel, kernel-janitors

>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?id=f359287765c04711ff54fbd11645271d8e5ff763#n465
>> I just used the original author's label, should I replace all his labels
>> like'err','err1' with reasonable one.
>
> No.

Do you insist to deviate from the current Linux coding style?

Regards,
Markus

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] cxl: Fix kobject memory leak in cxl_sysfs_afu_new_cr()
  2020-06-03  1:42 ` wanghai (M)
  2020-06-03  3:02   ` Michael Ellerman
@ 2020-06-03  6:14   ` Greg Kroah-Hartman
  2020-06-03  6:34     ` wanghai (M)
  2020-06-03  6:48     ` [PATCH] " Markus Elfring
  1 sibling, 2 replies; 10+ messages in thread
From: Greg Kroah-Hartman @ 2020-06-03  6:14 UTC (permalink / raw)
  To: wanghai (M)
  Cc: Markus Elfring, linuxppc-dev, Andrew Donnellan, Arnd Bergmann,
	Frederic Barrat, Ian Munsie, linux-kernel, kernel-janitors

On Wed, Jun 03, 2020 at 09:42:41AM +0800, wanghai (M) wrote:
> 
> 在 2020/6/3 1:20, Markus Elfring 写道:
> > > Fix it by adding a call to kobject_put() in the error path of
> > > kobject_init_and_add().
> > Thanks for another completion of the exception handling.
> > 
> > Would an other patch subject be a bit nicer?
> Thanks for the guidance, I will perfect this description and send a v2

Please note that you are responding to someone that a lot of kernel
developers and maintainers have blacklisted as being very annoying and
not helpful at all.

Please do not feel that you need to respond to, or change any patch in
response to their emails at all.

I strongly recommend you just add them to your filters to not have to
see their messages.  That's what I have done.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] cxl: Fix kobject memory leak in cxl_sysfs_afu_new_cr()
  2020-06-03  6:14   ` [PATCH] " Greg Kroah-Hartman
@ 2020-06-03  6:34     ` wanghai (M)
  2020-06-03  6:50       ` Greg Kroah-Hartman
  2020-06-03  6:56       ` Markus Elfring
  2020-06-03  6:48     ` [PATCH] " Markus Elfring
  1 sibling, 2 replies; 10+ messages in thread
From: wanghai (M) @ 2020-06-03  6:34 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Markus Elfring, linuxppc-dev, Andrew Donnellan, Arnd Bergmann,
	Frederic Barrat, Ian Munsie, linux-kernel, kernel-janitors


在 2020/6/3 14:14, Greg Kroah-Hartman 写道:
> On Wed, Jun 03, 2020 at 09:42:41AM +0800, wanghai (M) wrote:
>> 在 2020/6/3 1:20, Markus Elfring 写道:
>>>> Fix it by adding a call to kobject_put() in the error path of
>>>> kobject_init_and_add().
>>> Thanks for another completion of the exception handling.
>>>
>>> Would an other patch subject be a bit nicer?
>> Thanks for the guidance, I will perfect this description and send a v2
> Please note that you are responding to someone that a lot of kernel
> developers and maintainers have blacklisted as being very annoying and
> not helpful at all.
>
> Please do not feel that you need to respond to, or change any patch in
> response to their emails at all.
>
> I strongly recommend you just add them to your filters to not have to
> see their messages.  That's what I have done.
>
> thanks,
>
> greg k-h
>
> .

Okay, so I don’t have to send the v2 patch.


--

thanks,

Wang Hai



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] cxl: Fix kobject memory leak in cxl_sysfs_afu_new_cr()
  2020-06-03  6:14   ` [PATCH] " Greg Kroah-Hartman
  2020-06-03  6:34     ` wanghai (M)
@ 2020-06-03  6:48     ` Markus Elfring
  1 sibling, 0 replies; 10+ messages in thread
From: Markus Elfring @ 2020-06-03  6:48 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Wang Hai, linuxppc-dev, Andrew Donnellan, Arnd Bergmann,
	Frederic Barrat, Ian Munsie, linux-kernel, kernel-janitors

> Please note that you are responding to someone that a lot of kernel
> developers and maintainers have blacklisted as being very annoying

I can understand that you can occasionally become annoyed.


> and not helpful at all.

I got the impression that some contributors (including you)
found also a selection of my contributions useful.


> Please do not feel that you need to respond to, or change any patch in
> response to their emails at all.

I suggest to reconsider your responses to provided information once more.


> I strongly recommend you just add them to your filters to not have to
> see their messages.  That's what I have done.

I find such an “advice” questionable while it is generally possible
to adjust the communication settings as needed.

Regards,
Markus

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] cxl: Fix kobject memory leak in cxl_sysfs_afu_new_cr()
  2020-06-03  6:34     ` wanghai (M)
@ 2020-06-03  6:50       ` Greg Kroah-Hartman
  2020-06-03  6:54         ` wanghai (M)
  2020-06-03  6:56       ` Markus Elfring
  1 sibling, 1 reply; 10+ messages in thread
From: Greg Kroah-Hartman @ 2020-06-03  6:50 UTC (permalink / raw)
  To: wanghai (M)
  Cc: Markus Elfring, linuxppc-dev, Andrew Donnellan, Arnd Bergmann,
	Frederic Barrat, Ian Munsie, linux-kernel, kernel-janitors

On Wed, Jun 03, 2020 at 02:34:07PM +0800, wanghai (M) wrote:
> 
> 在 2020/6/3 14:14, Greg Kroah-Hartman 写道:
> > On Wed, Jun 03, 2020 at 09:42:41AM +0800, wanghai (M) wrote:
> > > 在 2020/6/3 1:20, Markus Elfring 写道:
> > > > > Fix it by adding a call to kobject_put() in the error path of
> > > > > kobject_init_and_add().
> > > > Thanks for another completion of the exception handling.
> > > > 
> > > > Would an other patch subject be a bit nicer?
> > > Thanks for the guidance, I will perfect this description and send a v2
> > Please note that you are responding to someone that a lot of kernel
> > developers and maintainers have blacklisted as being very annoying and
> > not helpful at all.
> > 
> > Please do not feel that you need to respond to, or change any patch in
> > response to their emails at all.
> > 
> > I strongly recommend you just add them to your filters to not have to
> > see their messages.  That's what I have done.
> > 
> > thanks,
> > 
> > greg k-h
> > 
> > .
> 
> Okay, so I don’t have to send the v2 patch.

No, all should be fine, I'll review the patch when after 5.8-rc1 is out,
and if I find any problems with it, will let you know then.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] cxl: Fix kobject memory leak in cxl_sysfs_afu_new_cr()
  2020-06-03  6:50       ` Greg Kroah-Hartman
@ 2020-06-03  6:54         ` wanghai (M)
  0 siblings, 0 replies; 10+ messages in thread
From: wanghai (M) @ 2020-06-03  6:54 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Markus Elfring, linuxppc-dev, Andrew Donnellan, Arnd Bergmann,
	Frederic Barrat, Ian Munsie, linux-kernel, kernel-janitors


在 2020/6/3 14:50, Greg Kroah-Hartman 写道:
> On Wed, Jun 03, 2020 at 02:34:07PM +0800, wanghai (M) wrote:
>> 在 2020/6/3 14:14, Greg Kroah-Hartman 写道:
>>> On Wed, Jun 03, 2020 at 09:42:41AM +0800, wanghai (M) wrote:
>>>> 在 2020/6/3 1:20, Markus Elfring 写道:
>>>>>> Fix it by adding a call to kobject_put() in the error path of
>>>>>> kobject_init_and_add().
>>>>> Thanks for another completion of the exception handling.
>>>>>
>>>>> Would an other patch subject be a bit nicer?
>>>> Thanks for the guidance, I will perfect this description and send a v2
>>> Please note that you are responding to someone that a lot of kernel
>>> developers and maintainers have blacklisted as being very annoying and
>>> not helpful at all.
>>>
>>> Please do not feel that you need to respond to, or change any patch in
>>> response to their emails at all.
>>>
>>> I strongly recommend you just add them to your filters to not have to
>>> see their messages.  That's what I have done.
>>>
>>> thanks,
>>>
>>> greg k-h
>>>
>>> .
>> Okay, so I don’t have to send the v2 patch.
> No, all should be fine, I'll review the patch when after 5.8-rc1 is out,
> and if I find any problems with it, will let you know then.

Got it. Thanks.


thanks,

Wang Hai




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cxl: Fix kobject memory leak in cxl_sysfs_afu_new_cr()
  2020-06-03  6:34     ` wanghai (M)
  2020-06-03  6:50       ` Greg Kroah-Hartman
@ 2020-06-03  6:56       ` Markus Elfring
  1 sibling, 0 replies; 10+ messages in thread
From: Markus Elfring @ 2020-06-03  6:56 UTC (permalink / raw)
  To: Wang Hai, linuxppc-dev
  Cc: Greg Kroah-Hartman, Andrew Donnellan, Arnd Bergmann,
	Frederic Barrat, Ian Munsie, linux-kernel, kernel-janitors

> Okay, so I don’t have to send the v2 patch.

It will become more interesting under which circumstances the presented
software development concerns will be taken better into account.

Regards,
Markus

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-06-03  6:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02 17:20 [PATCH] cxl: Fix kobject memory leak in cxl_sysfs_afu_new_cr() Markus Elfring
2020-06-03  1:42 ` wanghai (M)
2020-06-03  3:02   ` Michael Ellerman
2020-06-03  5:07     ` Markus Elfring
2020-06-03  6:14   ` [PATCH] " Greg Kroah-Hartman
2020-06-03  6:34     ` wanghai (M)
2020-06-03  6:50       ` Greg Kroah-Hartman
2020-06-03  6:54         ` wanghai (M)
2020-06-03  6:56       ` Markus Elfring
2020-06-03  6:48     ` [PATCH] " Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).