From: Matt Fleming Date: Fri, 9 Nov 2012 21:02:56 +0000 (+0000) Subject: efivarfs: Use query_variable_info() to limit kmalloc() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~16^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89d16665d388837b30972081d97b814be26d68a2;p=pandora-kernel.git efivarfs: Use query_variable_info() to limit kmalloc() We don't want someone who can write EFI variables to be able to allocate arbitrarily large amounts of memory, so cap it to something sensible like the amount of free space for EFI variables. Acked-by: Jeremy Kerr Cc: Matthew Garrett Cc: Alan Cox Signed-off-by: Matt Fleming --- Reading git-diff-tree failed