Re: [PATCH] x86/efi: Fix dummy variable buffer allocation

2013-06-17 Thread Matt Fleming
On Sun, 16 Jun, at 09:27:12PM, Ben Hutchings wrote: 1. Check for allocation failure 2. Clear the buffer contents, as they may actually be written to flash 3. Don't leak the buffer Compile-tested only. Signed-off-by: Ben Hutchings b...@decadent.org.uk Cc: sta...@vger.kernel.org ---

[PATCH] x86/efi: Fix dummy variable buffer allocation

2013-06-16 Thread Ben Hutchings
1. Check for allocation failure 2. Clear the buffer contents, as they may actually be written to flash 3. Don't leak the buffer Compile-tested only. Signed-off-by: Ben Hutchings b...@decadent.org.uk Cc: sta...@vger.kernel.org --- arch/x86/platform/efi/efi.c |7 ++- 1 file changed, 6