From: Aravind Gopalakrishnan Date: Sat, 24 Aug 2013 15:47:48 +0000 (-0500) Subject: amd64_edac: Fix incorrect wraparounds X-Git-Tag: v3.12-rc1~154^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fc06b3171f4de92cd21bf7ab1cb0bf62f05769d;p=pandora-kernel.git amd64_edac: Fix incorrect wraparounds dct_base and dct_limit obtain 32 bit register values when they read their respective pci config space registers. A left shift beyond 32 bits will cause them to wrap around. Similar case for chan_addr as can be seen from the bug report (link below). In the patch, we rectify this by casting chan_addr to u64 and by comparing dct_base and dct_limit against properly shifted sys_addr in order to compare the correct bits. Reported-by: Dan Carpenter Signed-off-by: Aravind Gopalakrishnan Link: http://lkml.kernel.org/r/20130819132302.GA12171@elgon.mountain Signed-off-by: Borislav Petkov --- Reading git-diff-tree failed