1
0
Fork 0

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:
Levente Kurusa 2013-12-19 16:06:51 +01:00 committed by Greg Kroah-Hartman
parent 8f24c4905c
commit 1ce0fd15be

View file

@ -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;