Explorar o código

[IA64] operator priority fix in acpi_map_lsapic()

'!' has a higher priority than '&', so as was
this won't test the first bit, but rather evaluates to false for any non-zero
lsapic->lapic_flags.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Roel Kluin %!s(int64=17) %!d(string=hai) anos
pai
achega
965d747264
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      arch/ia64/kernel/acpi.c

+ 1 - 1
arch/ia64/kernel/acpi.c

@@ -860,7 +860,7 @@ int acpi_map_lsapic(acpi_handle handle, int *pcpu)
 	lsapic = (struct acpi_madt_local_sapic *)obj->buffer.pointer;
 	lsapic = (struct acpi_madt_local_sapic *)obj->buffer.pointer;
 
 
 	if ((lsapic->header.type != ACPI_MADT_TYPE_LOCAL_SAPIC) ||
 	if ((lsapic->header.type != ACPI_MADT_TYPE_LOCAL_SAPIC) ||
-	    (!lsapic->lapic_flags & ACPI_MADT_ENABLED)) {
+	    (!(lsapic->lapic_flags & ACPI_MADT_ENABLED))) {
 		kfree(buffer.pointer);
 		kfree(buffer.pointer);
 		return -EINVAL;
 		return -EINVAL;
 	}
 	}