Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 767fe787 authored by Jiri Kosina's avatar Jiri Kosina
Browse files

HID: fix memleaking of collection



hid_free_device() doesn't free device->collection (but it does
free device->rdesc and device itself). This imposes memory leak.
Fix it.

Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 99abfeaf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -543,6 +543,7 @@ void hid_free_device(struct hid_device *device)
	}

	kfree(device->rdesc);
	kfree(device->collection);
	kfree(device);
}
EXPORT_SYMBOL_GPL(hid_free_device);