aboutsummaryrefslogtreecommitdiff
path: root/drivers/edac
diff options
context:
space:
mode:
authorGravatar Jan H. Schönherr <jschoenh@amazon.de> 2020-01-03 16:07:19 +0100
committerGravatar Borislav Petkov <bp@suse.de> 2020-01-13 10:07:56 +0100
commit7a8bc2b0462eaca0072d1f7f4ddc749fcb8a773c (patch)
treec9192fe6916f390f0a216d760a5fffeb3cefb9cb /drivers/edac
parentx86/mce: Fix mce=nobootlog (diff)
downloadlinux-7a8bc2b0462eaca0072d1f7f4ddc749fcb8a773c.tar.gz
linux-7a8bc2b0462eaca0072d1f7f4ddc749fcb8a773c.tar.bz2
linux-7a8bc2b0462eaca0072d1f7f4ddc749fcb8a773c.zip
x86/mce: Fix use of uninitialized MCE message string
The function mce_severity() is not required to update its msg argument. In fact, mce_severity_amd() does not, which makes mce_no_way_out() return uninitialized data, which may be used later for printing. Assuming that implementations of mce_severity() either always or never update the msg argument (which is currently the case), it is sufficient to initialize the temporary variable in mce_no_way_out(). While at it, avoid printing a useless "Unknown". Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20200103150722.20313-4-jschoenh@amazon.de
Diffstat (limited to 'drivers/edac')
0 files changed, 0 insertions, 0 deletions