Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4760336ybc; Tue, 26 Nov 2019 14:17:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwMyyfaB9x0WsNsaDrCcPx0EYjV4B5YxOy3YfG1/I0nuQkGnrK/eEzAhp2ieUZ9Ek4UsEuz X-Received: by 2002:a17:906:7812:: with SMTP id u18mr45232652ejm.6.1574806650939; Tue, 26 Nov 2019 14:17:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574806650; cv=none; d=google.com; s=arc-20160816; b=rl5uQozFQQCMZM2Q7hLHIPt/dISs3vKLf+fBfR0N9vmqAst4tKBJgsztDkMSNEy9Ll wNzZJ8A6f34yRWzJz26drHgpcVNG8W+ZwKa0GWqoAkqchw85wY6D7iktEdlkeBi+6yoe sRd7x8qLx0OJenN6zFOSth1qC0CDZqEuhn9zSrwDCYw0zi/Op13dtLyvN05fn60iu2W+ fyIm+UXnRtqY34Mw6ZpaVYbvoOFn1qMbZ6qo2k2PM0RVw80Mi1whA1beSpNAPO4ZYF8H wZ7kXXBmomJ7p8oO8CMWLdOX/KqgR1zzV06Gz2asejN+L63iSjoOK+Dk/nnmaL2ERCHT wXqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Vl+xiVOCP31NCupx53lgh8che5gXgCpStVYYfmUwlzQ=; b=sDyPpUfCtnv0okToj2meLbH3J4FA4jhp2dvAov5VU27QZoj3XSyJE8rhMkrX7UpQa/ N9gS8M+gu05mWJ74i1qQ4epXjjZxNIXXU/fyNvbKLUGyCg8PD8GFRtKnGTh4OZpsD8Yt ZJytN3AAYrTdEhX23vpVXzPGNgVU89zKO0MbbJHHND+XOa73F2cjefr3IfKbdvBl1O20 qO9jNz5s/VAg2HiChwUFBWlmsBux8l2316xK+VIyOeUKvfUh5f6+6CARFeaFSi2LDoUp Sv+iMmdyzFE55UKPUxvD4F6mOD9JPoEQRdQAmuzl14Hf8+gjbqjVl90wFD2z+UYiuV4Z oedQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZHJk/ldM"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m22si1939775edp.246.2019.11.26.14.17.07; Tue, 26 Nov 2019 14:17:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZHJk/ldM"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726701AbfKZWPg (ORCPT + 99 others); Tue, 26 Nov 2019 17:15:36 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33811 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbfKZWPf (ORCPT ); Tue, 26 Nov 2019 17:15:35 -0500 Received: by mail-wr1-f66.google.com with SMTP id t2so24356583wrr.1 for ; Tue, 26 Nov 2019 14:15:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Vl+xiVOCP31NCupx53lgh8che5gXgCpStVYYfmUwlzQ=; b=ZHJk/ldMYEF8IqTbqKMJFr47VB14Z3sSzlUpmoezWaWCQYu9uY/RKAdc+K2d4gK7k2 vsjLScu5OEN/kDFpqKov7wFsDSjVhyYzz53mgtNM7iUnz+55Q4yB/uBr7Z6aWgR1U46z pQGiJ9JsCQz3HKnpBbvEqaAlkOKlg+R/90is/hzMBrsi34KfZTkHQcfT003yBfSW2uEz o7gkuji4L7cVH97nbrDqMRTKOcBKHe2oXDV/ZJeC16b6D7JBzxK8L9+S6Fhad+IFIbZz zfg+g13Xggr0CAAkzyKPXalwKByI/1B7yFrmvcRULquEAozcPklrRWXm+Ssu6XxZ9T1d WC4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Vl+xiVOCP31NCupx53lgh8che5gXgCpStVYYfmUwlzQ=; b=lUrVbVxUSNpp5JwVHDGlwrq2UVf/+ccl5I2i648U7zKfNjkTKFQ+EQDvpgpdfcyucS 8lve1v/r+wYD4z+4E+e3v+MCKosdcebcM9A8vtT5+7HK1cXJ93HWiuokSW7fMkw1donV Mpz+nF/4Q3geyF715mlsiM9pCd0NqPdK9V+XYY0287eJBxpOd/HAAYggp4e2XZPwj/Hs AsuJIzB2YdZ1gITajwB5vAn871RFMuDdyX3aL4YYrWaF0HpFo0aYIFKE4zXtj+4zmXxQ aauVu8HFXPsWwz3M0pJeHGH8yjsmFitn4xNnBTy4nZrpdWbD2+KIsTo1KvfAGntwciIR xsgQ== X-Gm-Message-State: APjAAAU9x89DeoMXfPsoRsx+yvcyhK0+cUaRLO7jID3cdqsq+zeV5hy1 UGNE4rsYmPt+YbvDEzZPiw== X-Received: by 2002:a5d:674a:: with SMTP id l10mr34089842wrw.223.1574806532880; Tue, 26 Nov 2019 14:15:32 -0800 (PST) Received: from ninjahub.lan (host-2-102-12-67.as13285.net. [2.102.12.67]) by smtp.googlemail.com with ESMTPSA id z64sm3449005wmg.30.2019.11.26.14.15.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 14:15:32 -0800 (PST) From: Jules Irenge To: bp@alien8.de Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, x86@kernel.org, hpa@zytor.com, mingo@redhat.com, Jules Irenge Subject: [PATCH] cpu: microcode: Add comma to 0 Date: Tue, 26 Nov 2019 22:15:19 +0000 Message-Id: <20191126221519.167145-1-jbi.octave@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add "," after 0 Because memory for the struct is being cleared and elements after "," are missing on purpose as they are being cleared to Recommended by Boris Petkov Signed-off-by: Jules Irenge --- arch/x86/kernel/cpu/microcode/amd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/microcode/amd.c index a0e52bd00ecc..04ee649f4acb 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c @@ -418,7 +418,7 @@ static int __apply_microcode_amd(struct microcode_amd *mc) static bool apply_microcode_early_amd(u32 cpuid_1_eax, void *ucode, size_t size, bool save_patch) { - struct cont_desc desc = { 0 }; + struct cont_desc desc = { 0, }; u8 (*patch)[PATCH_MAX_SIZE]; struct microcode_amd *mc; u32 rev, dummy, *new_rev; -- 2.23.0