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)
commite33655a386ed3b26ad36fb97a47ebb1c2ca1e928
tree95adf8067766c15247e92349ca4a0be94fa0165a
parent54d2fbfb0c9d341c891926100ed0e5d4c4b0c987
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