diff --git a/[refs] b/[refs] index e2a009b81ea3..2163c5788a47 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 38b7f49a0654cb52cac61c6455807248eee3059d +refs/heads/master: 55dba52458a11126ff4445b5b94ebde03afcf47a diff --git a/trunk/drivers/hid/hid-core.c b/trunk/drivers/hid/hid-core.c index 449bd747d116..86c2ff2429d8 100644 --- a/trunk/drivers/hid/hid-core.c +++ b/trunk/drivers/hid/hid-core.c @@ -1100,8 +1100,10 @@ int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int i hid_debug_event(hid, buf); report = hid_get_report(report_enum, data); - if (!report) + if (!report) { + kfree(buf); return -1; + } /* dump the report */ snprintf(buf, HID_DEBUG_BUFSIZE - 1,