diff options
Diffstat (limited to 'drivers/hid/hid-picolcd.c')
-rw-r--r-- | drivers/hid/hid-picolcd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/hid-picolcd.c b/drivers/hid/hid-picolcd.c index 0aff3cdddd83..abd0bdc84624 100644 --- a/drivers/hid/hid-picolcd.c +++ b/drivers/hid/hid-picolcd.c | |||
@@ -1867,6 +1867,7 @@ static void picolcd_debug_out_report(struct picolcd_data *data, | |||
1867 | report->id, raw_size); | 1867 | report->id, raw_size); |
1868 | hid_debug_event(hdev, buff); | 1868 | hid_debug_event(hdev, buff); |
1869 | if (raw_size + 5 > sizeof(raw_data)) { | 1869 | if (raw_size + 5 > sizeof(raw_data)) { |
1870 | kfree(buff); | ||
1870 | hid_debug_event(hdev, " TOO BIG\n"); | 1871 | hid_debug_event(hdev, " TOO BIG\n"); |
1871 | return; | 1872 | return; |
1872 | } else { | 1873 | } else { |