x86,efi: Check max_size only if it is non-zero.
authorRichard Weinberger <richard@nod.at>
Wed, 10 Apr 2013 08:59:34 +0000 (10:59 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 30 May 2013 13:35:11 +0000 (14:35 +0100)
commitb12bcd7b3fe04a5fcca945aaf5b74181d9a223f4
treed88c65439b7be1c3eaa544e58f2ce347858011a9
parentc5ba30a73ebcca1b4068363ca08410fa3729ebeb
x86,efi: Check max_size only if it is non-zero.

commit 7791c8423f1f7f4dad94e753bae67461d5b80be8 upstream.

Some EFI implementations return always a MaximumVariableSize of 0,
check against max_size only if it is non-zero.
My Intel DQ67SW desktop board has such an implementation.

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/platform/efi/efi.c