public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* devm_* vs. PROBE_DEFFER: memory leaks?
@ 2019-05-31  8:52 Pavel Machek
  2019-05-31 13:27 ` Sebastian Reichel
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Machek @ 2019-05-31  8:52 UTC (permalink / raw)
  To: kernel list, dmitry.torokhov, gregkh, teheo, sre

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

Hi!

Is devm_ supposed to work with EPROBE_DEFFER?

Probe function is now called multiple times; is memory freed between
calling probe()? Will allocations from failed probe()s remain after
the driver is inserted successfully, leaking memory?

Thanks,
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

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

end of thread, other threads:[~2019-05-31 13:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-31  8:52 devm_* vs. PROBE_DEFFER: memory leaks? Pavel Machek
2019-05-31 13:27 ` Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox