diff options
| author | Aravind Gopalakrishnan <[email protected]> | 2013-08-24 10:47:48 -0500 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2013-08-27 15:00:22 +0200 |
| commit | 4fc06b3171f4de92cd21bf7ab1cb0bf62f05769d (patch) | |
| tree | 9f95e7ce272ba34b68d19c6fb42798e3c04c1863 /tools/testing/radix-tree/linux/kernel.h | |
| parent | 3f0aba4fc0ec789634c29a8265b90b8b0d1a4e29 (diff) | |
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 <[email protected]>
Signed-off-by: Aravind Gopalakrishnan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Borislav Petkov <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions