efivarfs: Implement exclusive access for {get,set}_variable
authorJeremy Kerr <jeremy.kerr@canonical.com>
Thu, 11 Oct 2012 13:19:11 +0000 (21:19 +0800)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 30 Oct 2012 10:39:24 +0000 (10:39 +0000)
Currently, efivarfs does not enforce exclusion over the get_variable and
set_variable operations. Section 7.1 of UEFI requires us to only allow a
single processor to enter {get,set}_variable services at once.

This change acquires the efivars->lock over calls to these operations
from the efivarfs paths.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>

No differences found