lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 25 Jul 2017 17:45:56 +0200 From: Borislav Petkov <bp@...en8.de> To: linux-edac <linux-edac@...r.kernel.org> Cc: Steven Rostedt <rostedt@...dmis.org>, Tony Luck <tony.luck@...el.com>, Yazen Ghannam <Yazen.Ghannam@....com>, X86 ML <x86@...nel.org>, LKML <linux-kernel@...r.kernel.org> Subject: [RFC PATCH 3/8] EDAC, mce_amd: Get rid of local var in amd_filter_mce() From: Borislav Petkov <bp@...e.de> ... and use the macro for that. No functionality change. Signed-off-by: Borislav Petkov <bp@...e.de> --- drivers/edac/mce_amd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c index c0ae47a5c7b7..a11a671c7a38 100644 --- a/drivers/edac/mce_amd.c +++ b/drivers/edac/mce_amd.c @@ -913,12 +913,10 @@ static inline void amd_decode_err_code(u16 ec) */ static bool amd_filter_mce(struct mce *m) { - u8 xec = (m->status >> 16) & 0x1f; - /* * NB GART TLB error reporting is disabled by default. */ - if (m->bank == 4 && xec == 0x5 && !report_gart_errors) + if (m->bank == 4 && XEC(m->status, 0x1f) == 0x5 && !report_gart_errors) return true; return false; -- 2.14.0.rc0
Powered by blists - more mailing lists