diff options
author | Jeremy Kerr <jeremy.kerr@canonical.com> | 2012-10-05 05:54:56 (GMT) |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2012-10-30 10:39:17 (GMT) |
commit | 0c542edde3cecc99b180a440ae33dcb7f28642ce (patch) | |
tree | 585dc08504412ff15610f4e716e93b485a4fb2ed /include/linux/efi.h | |
parent | 5d9db883761ad1bc2245fd3018715549b974203d (diff) | |
download | linux-fsl-qoriq-0c542edde3cecc99b180a440ae33dcb7f28642ce.tar.xz |
efi: Handle deletions and size changes in efivarfs_write_file
A write to an efivarfs file will not always result in a variable of
'count' size after the EFI SetVariable() call. We may have appended to
the existing data (ie, with the EFI_VARIABLE_APPEND_WRITE attribute), or
even have deleted the variable (with an authenticated variable update,
with a zero datasize).
This change re-reads the updated variable from firmware, to check for
size changes and deletions. In the latter case, we need to drop the
dentry.
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'include/linux/efi.h')
0 files changed, 0 insertions, 0 deletions