uwb: umc-dev: add missing put_device call
authorLevente Kurusa <levex@linux.com>
Thu, 19 Dec 2013 15:06:51 +0000 (16:06 +0100)
committerGreg 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

index 4613c13cd8511e8d6036c256a8789e831dfda13c..7b0b268e0c8e0707f6bb34e84a6688e760c0a10d 100644 (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;