projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f24c49
)
uwb: umc-dev: add missing put_device call
author
Levente Kurusa
<levex@linux.com>
Thu, 19 Dec 2013 15:06:51 +0000
(16:06 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 19 Dec 2013 18:26:46 +0000
(10:26 -0800)
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>
drivers/uwb/umc-dev.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/uwb/umc-dev.c
b/drivers/uwb/umc-dev.c
index 4613c13cd8511e8d6036c256a8789e831dfda13c..7b0b268e0c8e0707f6bb34e84a6688e760c0a10d 100644
(file)
--- 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;