diff mbox

[2/3] nfit: Fix the check for a successful NFIT merge

Message ID 14dca14555121bafe98db66e897681d17b8dedc6.1448045168.git.linda.knippers@hpe.com (mailing list archive)
State Accepted
Commit ff5a55f
Headers show

Commit Message

Linda Knippers Nov. 21, 2015, 12:05 a.m. UTC
Signed-off-by: Linda Knippers <linda.knippers@hpe.com>
---
 drivers/acpi/nfit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/acpi/nfit.c b/drivers/acpi/nfit.c
index 710092a..c140194d 100644
--- a/drivers/acpi/nfit.c
+++ b/drivers/acpi/nfit.c
@@ -1834,7 +1834,7 @@  static void acpi_nfit_notify(struct acpi_device *adev, u32 event)
 	nfit_saved = acpi_desc->nfit;
 	acpi_desc->nfit = (struct acpi_table_nfit *)buf.pointer;
 	ret = acpi_nfit_init(acpi_desc, buf.length);
-	if (!ret) {
+	if (ret) {
 		/* Merge failed, restore old nfit, and exit */
 		acpi_desc->nfit = nfit_saved;
 		dev_err(dev, "failed to merge updated NFIT\n");