diff options
author | Jiri Kosina <jkosina@suse.cz> | 2013-07-22 17:11:44 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-07-22 17:11:44 +0200 |
commit | bc197eedef1ae082ec662c64c3f4aa302821fb7a (patch) | |
tree | c8ccd70bbd24cf49570d885e4e8168ec270938ab /net | |
parent | 27ce405039bfe6d3f4143415c638f56a3df77dca (diff) |
HID: fix unused rsize usage
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/hidp/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c index 212980ff99b..2e658ade445 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 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); |