commit | 85c90716aae49f05a67c757df7b8c413256103f2 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Apr 30 10:43:12 2013 +0300 |
committer | Matt Fleming <matt.fleming@intel.com> | Tue Apr 30 16:03:18 2013 +0100 |
tree | dcb5b0f2e935d9f6042f96f24bcc7f4977142709 | |
parent | 8a415b8c05f261a52f45f2271b6c4731376fd5b5 [diff] |
efi: locking fix in efivar_entry_set_safe() The intent is that if we aren't allowed to block because we're in an NMI or an emergency then we only take the lock if it is uncontended. Part of the problem is the test is reversed so we return -EBUSY if we acquire the lock. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>