[PATCH 37/38] uwb: umc-dev: add missing put_device call

From: Levente Kurusa
Date: Thu Dec 19 2013 - 10:08:48 EST


This is required so that we give up the last reference to the device.

Signed-off-by: Levente Kurusa <levex@xxxxxxxxx>
---
drivers/uwb/umc-dev.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/uwb/umc-dev.c b/drivers/uwb/umc-dev.c
index 4613c13..7b0b268 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;
--
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/