From: Levente Kurusa Date: Thu, 19 Dec 2013 15:06:51 +0000 (+0100) Subject: uwb: umc-dev: add missing put_device call X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ce0fd15be2888569d4cea25fbd548f5f91c23a1;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Greg Kroah-Hartman --- 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;