lkml.org 
[lkml]   [2013]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 005/135] HID: fix unused rsize usage
    Date
    3.11-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Jiri Kosina <jkosina@suse.cz>

    commit bc197eedef1ae082ec662c64c3f4aa302821fb7a upstream.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    net/bluetooth/hidp/core.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/net/bluetooth/hidp/core.c
    +++ b/net/bluetooth/hidp/core.c
    @@ -236,6 +236,7 @@ static int hidp_send_report(struct hidp_
    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);



    \
     
     \ /
      Last update: 2013-10-11 23:41    [W:4.274 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site