]> git.baikalelectronics.ru Git - kernel.git/commit
efivars: Add compatibility code for compat tasks
authorMatt Fleming <matt.fleming@intel.com>
Mon, 17 Mar 2014 15:36:37 +0000 (15:36 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 17 Apr 2014 12:53:53 +0000 (13:53 +0100)
commitf8346c5ca882579992217a6efaa29d6faaf3ba47
tree95adf8067766c15247e92349ca4a0be94fa0165a
parent3118f9e8337625251c877fcaa398e2eb1a5bc50f
efivars: Add compatibility code for compat tasks

It seems people are using 32-bit efibootmgr on top of 64-bit kernels,
which will currently fail horribly when using the efivars interface,
which is the traditional efibootmgr backend (the other being efivarfs).

Since there is no versioning info in the data structure, figure out when
we need to munge the structure data via judicious use of
is_compat_task().

Cc: Mike Waychison <mikew@google.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
drivers/firmware/efi/efivars.c