aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hidp/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index 212980ff99b9..2e658ade4454 100644
--- 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
242 hid_output_report(report, buf); 242 hid_output_report(report, buf);
243 hdr = HIDP_TRANS_DATA | HIDP_DATA_RTYPE_OUPUT; 243 hdr = HIDP_TRANS_DATA | HIDP_DATA_RTYPE_OUPUT;
244 244
245 rsize = ((report->size - 1) >> 3) + 1 + (report->id > 0);
245 ret = hidp_send_intr_message(session, hdr, buf, rsize); 246 ret = hidp_send_intr_message(session, hdr, buf, rsize);
246 247
247 kfree(buf); 248 kfree(buf);