]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
amd64_edac: Fix operator precendence error
authorBorislav Petkov <borislav.petkov@amd.com>
Tue, 3 Aug 2010 14:51:28 +0000 (16:51 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Wed, 4 Aug 2010 09:15:09 +0000 (11:15 +0200)
The bitwise AND is of higher precedence, make that explicit.

Cc: <stable@kernel.org> # 34.x
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c

index 0106d343a68145806de6e843e51fc1fa1f8490be..c29d24fe1856a21ab073bee1255e8cc5ea664d27 100644 (file)
@@ -1683,7 +1683,7 @@ static void f10_map_sysaddr_to_csrow(struct mem_ctl_info *mci,
         * ganged. Otherwise @chan should already contain the channel at
         * this point.
         */
-       if (dct_ganging_enabled(pvt) && pvt->nbcfg & K8_NBCFG_CHIPKILL)
+       if (dct_ganging_enabled(pvt) && (pvt->nbcfg & K8_NBCFG_CHIPKILL))
                chan = get_channel_from_ecc_syndrome(mci, syndrome);
 
        if (chan >= 0)