efivars: check for EFI_RUNTIME_SERVICES
authorMatt Fleming <matt.fleming@intel.com>
Thu, 11 Jul 2013 06:30:33 +0000 (07:30 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 11 Jul 2013 10:00:31 +0000 (11:00 +0100)
The efivars code requires EFI runtime services to function, so check
that they are enabled.

This fixes a crash when booting with the "noefi" kernel parameter, and
also when mixing kernel and firmware "bitness", e.g. 32-bit kernel with
64-bit firmware.

Tested-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
drivers/firmware/efi/efivars.c

Simple merge