Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp962182pxa; Sat, 1 Aug 2020 11:50:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBgV8xgjvWL02u02GAGjCVIHIOOaRNnR2iilXJj7I1vrDt31Qby95Xbaj0VIUlE4Nu/xOo X-Received: by 2002:a17:906:c310:: with SMTP id s16mr9646517ejz.466.1596307838143; Sat, 01 Aug 2020 11:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596307838; cv=none; d=google.com; s=arc-20160816; b=Ihhab1PV+VjeXx5pi4+CwXeF/8mWkJP7/bx8/KIc3F7liLwmHIrznYkwyTIngrhpFA r6PrG4LYy5o6b8tXzGAR5d+l7T6nP9lCFNU6RF7Hi4VcOSvJNBbQHZs6M7jaGQAJrMpS VV3hgc3T1deyVNGPz3MtzkjOPjNs4NlneOfHjsepqbTGTJjd1zvtEgXGX9Sc6Wjbp3hp 7hxShUJOW2ZM4HQ4TcbCVANsY4td/nS6Y+pl+QH3yMgi6j4Otyq3I5WTFODCsI0hXVbw B4Edq7W/VbUYrNFMLsI8AVODWNZvKE1cz3hEBBeFYAdswbzLKVnK+WrWnGCaa/uMCf2b N3RA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PvnrBlZrpRslY4PpmEHw5xhWUfLd5lVP4jPMRcGfwzE=; b=mQeUaSkCJTyC+K5ppe2IWKfw/RTJeMC4is3G/4HK0Hl18fHbDS6Q+4NmZ3KGDc52tb G8Zb9TjiAsGqDxwp+EN2iDJ73XaD25saA7f6E5FtOIV6robDOuZtaUJpbBB3NrDYwf32 zTcUJg8A4dEKoHilkoW5uHGebU/Q2TeFsThA6Ags7umFQLGhrj1xiip5LMSYiW2QIuWN tY7PztG9gNCe+C4ZofWA9QNnC3JYcSbOVX9AVoT+9kzsNHpXgAnwfIiUIJz732dff8bX 11QLVMHhW3loYjwXUBt+WCWoSWtPcn3t4Mxt73enLp5akez6Fu+TTMtTELKTBJe7FQM/ +XMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MSy4t9aB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id m23si7476318ejk.621.2020.08.01.11.50.16; Sat, 01 Aug 2020 11:50:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MSy4t9aB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726946AbgHASqi (ORCPT + 99 others); Sat, 1 Aug 2020 14:46:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726571AbgHASqi (ORCPT ); Sat, 1 Aug 2020 14:46:38 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27334C06174A for ; Sat, 1 Aug 2020 11:46:38 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id q76so10788071wme.4 for ; Sat, 01 Aug 2020 11:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PvnrBlZrpRslY4PpmEHw5xhWUfLd5lVP4jPMRcGfwzE=; b=MSy4t9aBkRohIC/HXlbwk8C/iETgAgFR2FotTeQqf7LYl9jfCLLcOrupiK7Rpzyh0Y n1Bd9wiDkSRMp/Bh5KwgN2sI0AEcNgMDrbuhU78i7Jv019Ma+VA4hrWRfC9JGVOkOqzX frHiG3VFvmDFVy3DHijgc7ZR6vwgzemubRaR0gIPh6iS8KbPaGfDgr0SGVFdvMs8hCxY mOFtrbzwlNhsUxNsm3NQY6Rj3jfDB0UHCT6x+ifxA8IXj+/MfgiIM0fhXYSNykEBU8an jA3oQO6XPLDtLO2JgoJYjvP/CbNFGO1Pxd7vvZGzJZaShWhh3Y1WQ+rz5dg6eTHuVLdl PPlQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=PvnrBlZrpRslY4PpmEHw5xhWUfLd5lVP4jPMRcGfwzE=; b=Yb2Y73w7uTdh+IM6U2Tr/EAFr1G19RWlThMDdBT3ue2yND/m7gjFwsoO3RmaC/eux3 YBit17Jba86m7125fWQ8VGBGbo4WEdJL9lkriTONz6kCQH6KgdG6Zw363iwnpQfdOaZ+ 6+l9rW9KF2E5DvOkDxCzHV2FUUj9q4xanr8erHfaxf3iF/c2qYmAVV80LdrzTv8/fFIz 3jwOKznsRSugC8CN21o902glbb5GNU9aqgInoWUs/z9flmB6EiXO4x+4e6Fhwp64zirp /63HfLUZQaC2i13+v5AvkVda4wYMGzXM9Epu6NstVJo+6lo/n6OXmTiClDezfsrsBoMi v4yA== X-Gm-Message-State: AOAM530VK5nDVpX3GY376oXexIwQyhL5E1cz2W9+wRLR+3l7boz/pSWo JBdHZfHrk/2XpCXQtS5Aei4sD9Kf9Aap X-Received: by 2002:a1c:750a:: with SMTP id o10mr9282009wmc.165.1596307596610; Sat, 01 Aug 2020 11:46:36 -0700 (PDT) Received: from localhost.lan (host-92-25-238-49.as13285.net. [92.25.238.49]) by smtp.gmail.com with ESMTPSA id g7sm17468447wrv.82.2020.08.01.11.46.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Aug 2020 11:46:36 -0700 (PDT) From: Jules Irenge To: linux-kernel@vger.kernel.org Cc: Jules Irenge , Paul Moore , Eric Paris , linux-audit@redhat.com (moderated list:AUDIT SUBSYSTEM) Subject: [PATCH 2/4] audit: uninitialize global variable audit_sig_sid Date: Sat, 1 Aug 2020 19:46:01 +0100 Message-Id: <20200801184603.310769-3-jbi.octave@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200801184603.310769-1-jbi.octave@gmail.com> References: <0/4> <20200801184603.310769-1-jbi.octave@gmail.com> 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 Checkpatch tool reports an error at variable audit_sig_sid declaration "ERROR: do not initialise globals to 0" To fix this, the global variable has been uninitialized. Signed-off-by: Jules Irenge --- kernel/audit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/audit.c b/kernel/audit.c index 8c201f414226..7b1a38a211a9 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -125,7 +125,7 @@ static u32 audit_backlog_wait_time = AUDIT_BACKLOG_WAIT_TIME; /* The identity of the user shutting down the audit system. */ kuid_t audit_sig_uid = INVALID_UID; pid_t audit_sig_pid = -1; -u32 audit_sig_sid = 0; +u32 audit_sig_sid; /* Records can be lost in several ways: 0) [suppressed in audit_alloc] -- 2.26.2