If error happen we jump to "out" label, in this case new_device not yet became the parent but it wasn't putted. Signed-off-by: Monakhov Dmitriy <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>