Re: [PATCH v2 2/2] HID: core: Fix size as type u32

2018-02-16 Thread Jiri Kosina
On Sat, 3 Feb 2018, Aaron Ma wrote: > Could anyone review and apply these 2 patch? I have applied all 3 patches to for-4.16/upstream-fixes. Thanks, -- Jiri Kosina SUSE Labs

Re: [PATCH v2 2/2] HID: core: Fix size as type u32

2018-02-16 Thread Jiri Kosina
On Sat, 3 Feb 2018, Aaron Ma wrote: > Could anyone review and apply these 2 patch? I have applied all 3 patches to for-4.16/upstream-fixes. Thanks, -- Jiri Kosina SUSE Labs

Re: [PATCH v2 2/2] HID: core: Fix size as type u32

2018-02-03 Thread Aaron Ma
On 02/03/2018 03:55 PM, Marcus Folkesson wrote: > Hi Aaron, > > On Mon, Jan 08, 2018 at 10:41:41AM +0800, Aaron Ma wrote: >> When size is negative, calling memset will make segment fault. >> Declare the size as type u32 to keep memset safe. >> >> size in struct hid_report is unsigned, fix return

Re: [PATCH v2 2/2] HID: core: Fix size as type u32

2018-02-03 Thread Aaron Ma
On 02/03/2018 03:55 PM, Marcus Folkesson wrote: > Hi Aaron, > > On Mon, Jan 08, 2018 at 10:41:41AM +0800, Aaron Ma wrote: >> When size is negative, calling memset will make segment fault. >> Declare the size as type u32 to keep memset safe. >> >> size in struct hid_report is unsigned, fix return

Re: [PATCH v2 2/2] HID: core: Fix size as type u32

2018-02-02 Thread Marcus Folkesson
Hi Aaron, On Mon, Jan 08, 2018 at 10:41:41AM +0800, Aaron Ma wrote: > When size is negative, calling memset will make segment fault. > Declare the size as type u32 to keep memset safe. > > size in struct hid_report is unsigned, fix return type of > hid_report_len to u32. > > Cc:

Re: [PATCH v2 2/2] HID: core: Fix size as type u32

2018-02-02 Thread Marcus Folkesson
Hi Aaron, On Mon, Jan 08, 2018 at 10:41:41AM +0800, Aaron Ma wrote: > When size is negative, calling memset will make segment fault. > Declare the size as type u32 to keep memset safe. > > size in struct hid_report is unsigned, fix return type of > hid_report_len to u32. > > Cc:

Re: [PATCH v2 2/2] HID: core: Fix size as type u32

2018-02-02 Thread Aaron Ma
Hi: Could anyone review and apply these 2 patch? Regards, Aaron

Re: [PATCH v2 2/2] HID: core: Fix size as type u32

2018-02-02 Thread Aaron Ma
Hi: Could anyone review and apply these 2 patch? Regards, Aaron

[PATCH v2 2/2] HID: core: Fix size as type u32

2018-01-07 Thread Aaron Ma
When size is negative, calling memset will make segment fault. Declare the size as type u32 to keep memset safe. size in struct hid_report is unsigned, fix return type of hid_report_len to u32. Cc: sta...@vger.kernel.org Signed-off-by: Aaron Ma ---

[PATCH v2 2/2] HID: core: Fix size as type u32

2018-01-07 Thread Aaron Ma
When size is negative, calling memset will make segment fault. Declare the size as type u32 to keep memset safe. size in struct hid_report is unsigned, fix return type of hid_report_len to u32. Cc: sta...@vger.kernel.org Signed-off-by: Aaron Ma --- drivers/hid/hid-core.c | 10 +-