diff options
author | Levente Kurusa <levex@linux.com> | 2013-12-19 19:06:51 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-19 22:26:46 +0400 |
commit | 1ce0fd15be2888569d4cea25fbd548f5f91c23a1 (patch) | |
tree | 14215de07f4d4ab0bbcd8a2de05d732023bb1099 /drivers | |
parent | 8f24c4905cdc86f9ecef1c2690950b219681e749 (diff) | |
download | linux-1ce0fd15be2888569d4cea25fbd548f5f91c23a1.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/uwb/umc-dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/uwb/umc-dev.c b/drivers/uwb/umc-dev.c index 4613c13cd851..7b0b268e0c8e 100644 --- a/drivers/uwb/umc-dev.c +++ b/drivers/uwb/umc-dev.c @@ -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; |