]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/utilities/utmath.c
ACPICA: Fix fault after mem allocation failure in AML parser
[linux-2.6-omap-h63xx.git] / drivers / acpi / utilities / utmath.c
index 19d74bedce27485cc519d3168801cdaa63e0aa1b..c927324fdd26536a2905088397900a858208079c 100644 (file)
@@ -5,7 +5,7 @@
  ******************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2006, R. Byron Moore
+ * Copyright (C) 2000 - 2008, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -276,7 +276,7 @@ acpi_ut_short_divide(acpi_integer in_dividend,
                *out_quotient = in_dividend / divisor;
        }
        if (out_remainder) {
-               *out_remainder = (u32) in_dividend % divisor;
+               *out_remainder = (u32) (in_dividend % divisor);
        }
 
        return_ACPI_STATUS(AE_OK);