summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/uwb/pal.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/uwb/pal.c')
-rw-r--r--kernel/drivers/uwb/pal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/drivers/uwb/pal.c b/kernel/drivers/uwb/pal.c
index c1304b8d4..678e93741 100644
--- a/kernel/drivers/uwb/pal.c
+++ b/kernel/drivers/uwb/pal.c
@@ -97,6 +97,8 @@ static bool uwb_rc_class_device_exists(struct uwb_rc *target_rc)
dev = class_find_device(&uwb_rc_class, NULL, target_rc, find_rc);
+ put_device(dev);
+
return (dev != NULL);
}