Skip to content

Commit ff5a55f

Browse files
Linda Knippersdjbw
authored andcommitted
nfit: Fix the check for a successful NFIT merge
Missed previously due to a lack of test coverage on a platform that provided an valid response to _FIT. Signed-off-by: Linda Knippers <linda.knippers@hpe.com> Acked-by: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent 826c416 commit ff5a55f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/acpi/nfit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ static void acpi_nfit_notify(struct acpi_device *adev, u32 event)
18161816
nfit_saved = acpi_desc->nfit;
18171817
acpi_desc->nfit = (struct acpi_table_nfit *)buf.pointer;
18181818
ret = acpi_nfit_init(acpi_desc, buf.length);
1819-
if (!ret) {
1819+
if (ret) {
18201820
/* Merge failed, restore old nfit, and exit */
18211821
acpi_desc->nfit = nfit_saved;
18221822
dev_err(dev, "failed to merge updated NFIT\n");

0 commit comments

Comments
 (0)