From: Jiri Kosina Date: Mon, 12 Mar 2007 13:55:12 +0000 (+0100) Subject: HID: allocate hid_parser in a proper way X-Git-Tag: v2.6.21-rc4~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47a80edb1d80ae644ea374a016c8e68d43d2671f;p=pandora-kernel.git HID: allocate hid_parser in a proper way hid_parser is non-trivially large structure, so it should be allocated using vmalloc() to avoid unsuccessful allocations when memory fragmentation is too high. This structue has a very short life, it's destroyed as soon as the report descriptor has been completely parsed. This should be considered a temporary solution, until the hid_parser is rewritten to consume less memory during report descriptor parsing. Acked-by: Mariusz Kozlowski Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed