linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND 0/1] Revert "spi/doc: spi_master_put must be followed up by kfree"
@ 2015-09-05 22:47 Alexey Klimov
  2015-09-06  0:06 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Klimov @ 2015-09-05 22:47 UTC (permalink / raw)
  To: Guenter Roeck, linux-spi-u79uwXL29TY76Z2rM5mHXA,
	broonie-DgEjT+Ai2ygdnm+yROfE0A
  Cc: Alexey Klimov, djkurtz-F7+t8E8rja9g9hUCZPvPmw,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Uwe Kleine-Koenig

Hi all,

During review of new SPI drivers I tried to understand connection
between comment "calling spi_master_put() and kfree() to prevent a
memory leak" for spi_alloc_master() in spi.c and why no driver calls
kfree() on error path. Looks like Uwe added this comment and later I
found patch from Guenter that reverted this comment but spi-imx.c was
not fixed for that time. Later in 2013 spi-imx was fixed. Is it
correct time right now to fix comment?

I tried to save authorship of patch from Guenter, added field "From"
and kept signed-off-by and cc. I hope i did it correctly in patch
(sorry for possible inconvenience).
Also marked it as RESEND since it's resend of original patch from 2012 year.

Best regards,
Alexey Klimov
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH RESEND 0/1] Revert "spi/doc: spi_master_put must be followed up by kfree"
  2015-09-05 22:47 [PATCH RESEND 0/1] Revert "spi/doc: spi_master_put must be followed up by kfree" Alexey Klimov
@ 2015-09-06  0:06 ` Mark Brown
       [not found]   ` <20150906000640.GR5313-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2015-09-06  0:06 UTC (permalink / raw)
  To: Alexey Klimov
  Cc: Guenter Roeck, linux-spi, Alexey Klimov, djkurtz, linux-kernel,
	Uwe Kleine-Koenig

[-- Attachment #1: Type: text/plain, Size: 850 bytes --]

On Sun, Sep 06, 2015 at 01:47:21AM +0300, Alexey Klimov wrote:

> During review of new SPI drivers I tried to understand connection
> between comment "calling spi_master_put() and kfree() to prevent a
> memory leak" for spi_alloc_master() in spi.c and why no driver calls
> kfree() on error path. Looks like Uwe added this comment and later I
> found patch from Guenter that reverted this comment but spi-imx.c was
> not fixed for that time. Later in 2013 spi-imx was fixed. Is it
> correct time right now to fix comment?

I'm sorry but I'm not clear what you're talking about here as there's
missing context...  where is this comment you're talking about?

In general please don't send cover letters for single patches, either
add the content to the commit message or put it after the --- if it's
administrative stuff (like SubmittingPatches says).

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

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

* Re: [PATCH RESEND 0/1] Revert "spi/doc: spi_master_put must be followed up by kfree"
       [not found]   ` <20150906000640.GR5313-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
@ 2015-09-06  0:22     ` Alexey Klimov
       [not found]       ` <CALW4P+KEsLAhQDHrMt-4Nw5Tb57cLp99T_uAdTpcQBX8_i1uSA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Klimov @ 2015-09-06  0:22 UTC (permalink / raw)
  To: Mark Brown
  Cc: Alexey Klimov, Guenter Roeck, linux-spi-u79uwXL29TY76Z2rM5mHXA,
	djkurtz-F7+t8E8rja9g9hUCZPvPmw, Linux Kernel Mailing List,
	Uwe Kleine-Koenig

On Sun, Sep 6, 2015 at 3:06 AM, Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> On Sun, Sep 06, 2015 at 01:47:21AM +0300, Alexey Klimov wrote:
>
>> During review of new SPI drivers I tried to understand connection
>> between comment "calling spi_master_put() and kfree() to prevent a
>> memory leak" for spi_alloc_master() in spi.c and why no driver calls
>> kfree() on error path. Looks like Uwe added this comment and later I
>> found patch from Guenter that reverted this comment but spi-imx.c was
>> not fixed for that time. Later in 2013 spi-imx was fixed. Is it
>> correct time right now to fix comment?
>
> I'm sorry but I'm not clear what you're talking about here as there's
> missing context...  where is this comment you're talking about?
>
> In general please don't send cover letters for single patches, either
> add the content to the commit message or put it after the --- if it's
> administrative stuff (like SubmittingPatches says).

Okay, understand (about formatting of subject, RESEND noise and no
cover letter for single patches). Just never send reverts before
(especially when it's re-send from 2012 year).
It's easy to see comment in patch with subject: [PATCH RESEND 1/1]
Revert "spi/doc: spi_master_put must be followed up by kfree"
It's in drivers/spi/spi.c, line 1440 in tag v4.2 released ~ 5 days
ago. Comment for function spi_alloc_master().

Sorry. Right now I see how I screwed up. Should I re-send it as single
patch with all info included (marking as RESEND)?

-- 
Best regards,
Klimov Alexey
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH RESEND 0/1] Revert "spi/doc: spi_master_put must be followed up by kfree"
       [not found]       ` <CALW4P+KEsLAhQDHrMt-4Nw5Tb57cLp99T_uAdTpcQBX8_i1uSA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-09-07 10:13         ` Mark Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2015-09-07 10:13 UTC (permalink / raw)
  To: Alexey Klimov
  Cc: Alexey Klimov, Guenter Roeck, linux-spi-u79uwXL29TY76Z2rM5mHXA,
	djkurtz-F7+t8E8rja9g9hUCZPvPmw, Linux Kernel Mailing List,
	Uwe Kleine-Koenig

[-- Attachment #1: Type: text/plain, Size: 264 bytes --]

On Sun, Sep 06, 2015 at 03:22:43AM +0300, Alexey Klimov wrote:

> Sorry. Right now I see how I screwed up. Should I re-send it as single
> patch with all info included (marking as RESEND)?

No, it's OK - the patch itself was clear enough and I already applied it.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

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

end of thread, other threads:[~2015-09-07 10:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-05 22:47 [PATCH RESEND 0/1] Revert "spi/doc: spi_master_put must be followed up by kfree" Alexey Klimov
2015-09-06  0:06 ` Mark Brown
     [not found]   ` <20150906000640.GR5313-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-09-06  0:22     ` Alexey Klimov
     [not found]       ` <CALW4P+KEsLAhQDHrMt-4Nw5Tb57cLp99T_uAdTpcQBX8_i1uSA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-07 10:13         ` Mark Brown

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).