uwb: umc-dev: add missing put_device call
This is required so that we give up the last reference to the device. Signed-off-by: Levente Kurusa <levex@linux.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
8f24c4905c
Коммит
1ce0fd15be
|
@ -66,6 +66,7 @@ int umc_device_register(struct umc_dev *umc)
|
|||
return 0;
|
||||
|
||||
error_device_register:
|
||||
put_device(&umc->dev);
|
||||
release_resource(&umc->resource);
|
||||
error_request_resource:
|
||||
return err;
|
||||
|
|
Загрузка…
Ссылка в новой задаче