* [Patch 0/2] Driver core: device_register() and put_device()
@ 2008-09-03 16:26 Cornelia Huck
0 siblings, 0 replies; only message in thread
From: Cornelia Huck @ 2008-09-03 16:26 UTC (permalink / raw)
To: Greg K-H; +Cc: linux-kernel
Hi Greg,
recently I stumbled over a bug in my code where I called kfree() on a
device after device_register() had been called (instead of using
put_device()). This seems to be a trap that is easily hit, so I added
some clarifications to the docbook comments for the device registration
functions. Looking further at the driver core code, I found that
device_create_vargs() contains the same bug.
The patches are on top of the driver core quilt.
[Patch 1/2] Driver core: Clarify device cleanup.
[Patch 2/2] Driver core: Fix cleanup in device_create_vargs().
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-03 16:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-03 16:26 [Patch 0/2] Driver core: device_register() and put_device() Cornelia Huck
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®