mirror of https://lore.kernel.org/lkml/
 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, broonie
  Cc: Alexey Klimov, djkurtz, linux-kernel, 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

^ 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
2015-09-06  0:22   ` Alexey Klimov
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

all inboxes | Powered by JetHome®