Commit 962b70a1eb22c467b95756a290c694e73da17f41

Authored by Borislav Petkov
1 parent eba042a81e

amd64_edac: Fix operator precendence error

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/edac/amd64_edac.c
... ... @@ -1683,7 +1683,7 @@
1683 1683 * ganged. Otherwise @chan should already contain the channel at
1684 1684 * this point.
1685 1685 */
1686   - if (dct_ganging_enabled(pvt) && pvt->nbcfg & K8_NBCFG_CHIPKILL)
  1686 + if (dct_ganging_enabled(pvt) && (pvt->nbcfg & K8_NBCFG_CHIPKILL))
1687 1687 chan = get_channel_from_ecc_syndrome(mci, syndrome);
1688 1688  
1689 1689 if (chan >= 0)