diff options
author | Jeremy Kerr <jeremy.kerr@canonical.com> | 2012-10-05 13:54:56 +0800 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2012-10-30 10:39:17 +0000 |
commit | 0c542edde3cecc99b180a440ae33dcb7f28642ce (patch) | |
tree | 585dc08504412ff15610f4e716e93b485a4fb2ed /drivers/hwmon/adcxx.c | |
parent | 5d9db883761ad1bc2245fd3018715549b974203d (diff) |
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 'drivers/hwmon/adcxx.c')
0 files changed, 0 insertions, 0 deletions