Merge tag 'pstore-v4.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/kees...
[sfrench/cifs-2.6.git] / drivers / firmware / efi / efi-pstore.c
index dda2e96328c0e28691e7d92dbf0d8db49178f0fd..ef1fafdad4008ae7fa1824396592e0e53cf61002 100644 (file)
@@ -257,7 +257,7 @@ static int efi_pstore_write(struct pstore_record *record)
        for (i = 0; i < DUMP_NAME_LEN; i++)
                efi_name[i] = name[i];
 
-       efivar_entry_set_safe(efi_name, vendor, PSTORE_EFI_ATTRIBUTES,
+       ret = efivar_entry_set_safe(efi_name, vendor, PSTORE_EFI_ATTRIBUTES,
                              !pstore_cannot_block_path(record->reason),
                              record->size, record->psi->buf);