diff mbox

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

Message ID 14dca14555121bafe98db66e897681d17b8dedc6.1448045168.git.linda.knippers@hpe.com
State Accepted
Commit ff5a55f89c6690a0b292f1a7e0cd4532961588d5
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(-)

-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
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");