mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
put_device() must be called after device_register() fails, since device_register() always initializes the refcount on the device structure. Signed-off-by: Emilio G. Cota <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>