Skip to content

Driver core: device_register() and put_device()

Cornelia Huck lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Patch 0/2] Driver core: device_register() and put_device()

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