Skip to content

Commit

Permalink
uwb: umc-dev: add missing put_device call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Levente Kurusa authored and Greg Kroah-Hartman committed Dec 19, 2013
1 parent 8f24c49 commit 1ce0fd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/uwb/umc-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1ce0fd1

Please sign in to comment.