projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba1c0c5
)
hid: rkvr: fix inconsistent returns in inv_hid_register_devcie()
author
lanshh
<lsh@rock-chips.com>
Mon, 14 Nov 2016 01:50:57 +0000
(09:50 +0800)
committer
lanshh
<lsh@rock-chips.com>
Mon, 14 Nov 2016 01:50:57 +0000
(09:50 +0800)
Change-Id: Ida0a3dff53c9e47dc04b0111ea56500d1adcbb3c
Signed-off-by: lanshh <lsh@rock-chips.com>
drivers/hid/hid-rkvr.c
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-rkvr.c
b/drivers/hid/hid-rkvr.c
index 4360c28dd729b1e146a7e75c79d0c058a563d6a5..0bdafb380a5fdd82b8f91c24bfef204dafce4ca8 100644
(file)
--- a/
drivers/hid/hid-rkvr.c
+++ b/
drivers/hid/hid-rkvr.c
@@
-142,6
+142,7
@@
static int inv_hid_register_devcie(struct rkvr_iio_hw_device *hw_device)
list_for_each_entry(p, &rkvr_hid_hw_device_list, l) {
if (!strcmp(hw_device->name, p->name)) {
pr_err("%s already exist ,abort\n", hw_device->name);
+ mutex_unlock(&device_list_lock);
return -1;
}
}