projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27ce405
)
HID: fix unused rsize usage
author
Jiri Kosina
<jkosina@suse.cz>
Mon, 22 Jul 2013 15:11:44 +0000
(17:11 +0200)
committer
Jiri Kosina
<jkosina@suse.cz>
Mon, 22 Jul 2013 15:11:44 +0000
(17:11 +0200)
27ce4050
("HID: fix data access in implement()") by mistake removed
a setting of buffer size in hidp. Fix that by putting it back.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
net/bluetooth/hidp/core.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/hidp/core.c
b/net/bluetooth/hidp/core.c
index 212980ff99b91e47b578b0b30c956aaf79f9129f..2e658ade4454365ccb20c7fb6a062a4d17697442 100644
(file)
--- a/
net/bluetooth/hidp/core.c
+++ b/
net/bluetooth/hidp/core.c
@@
-242,6
+242,7
@@
static int hidp_send_report(struct hidp_session *session, struct hid_report *rep
hid_output_report(report, buf);
hdr = HIDP_TRANS_DATA | HIDP_DATA_RTYPE_OUPUT;
+ rsize = ((report->size - 1) >> 3) + 1 + (report->id > 0);
ret = hidp_send_intr_message(session, hdr, buf, rsize);
kfree(buf);