diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-04-30 09:43:12 +0200 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2013-04-30 17:03:18 +0200 |
commit | 85c90716aae49f05a67c757df7b8c413256103f2 (patch) | |
tree | dcb5b0f2e935d9f6042f96f24bcc7f4977142709 /kernel/tsacct.c | |
parent | efi, pstore: Read data from variable store before memcpy() (diff) | |
download | linux-85c90716aae49f05a67c757df7b8c413256103f2.tar.xz linux-85c90716aae49f05a67c757df7b8c413256103f2.zip |
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>
Diffstat (limited to 'kernel/tsacct.c')
0 files changed, 0 insertions, 0 deletions