]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe033d017fe2a5660ee46178de5babc9c3c27ca7
treea7569a0740d894e36e845971f9de35c3d9363b3c
parenta9198bc13eea772a3ec373025e97a47976bcf4c6
efivars: check for EFI_RUNTIME_SERVICES

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