From: Jeremy Kerr Date: Fri, 5 Oct 2012 05:54:56 +0000 (+0800) Subject: efi: Handle deletions and size changes in efivarfs_write_file X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~16^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c542edde3cecc99b180a440ae33dcb7f28642ce;p=pandora-kernel.git 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 Signed-off-by: Matt Fleming --- Reading git-diff-tree failed