mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00:00
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:
parent
8f24c4905c
commit
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;
|
||||
|
Loading…
Reference in New Issue
Block a user