]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 18:09:15 +0000 (11:09 -0700)
commit 962b70a1eb22c467b95756a290c694e73da17f41 upstream.

The bitwise AND is of higher precedence, make that explicit.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/edac/amd64_edac.c

index c028acbca76832127a7d039a366d9701e21df302..c20a6c925bbe831507e4d07d02c692361d64824c 100644 (file)
@@ -1679,7 +1679,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)