Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2618533lqp; Mon, 25 Mar 2024 04:45:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrjrhkzlM64WW7RZZ4YFJTviojb4XB4Ci3aCLXRpjpN/h8RAkrjbNHUrq+bqEcVzI8kBTpL+ibOZYXXYy/Z/i3hq3Qe25tDl80avNJ6A== X-Google-Smtp-Source: AGHT+IFGK8RISp8gBjOWxlsjAT+JWAXcac2QsUg41SnaKMN4UZ4aw8sDWCP30JhDoZFva6kj9Dj0 X-Received: by 2002:a05:622a:253:b0:431:4e9b:b82a with SMTP id c19-20020a05622a025300b004314e9bb82amr4956527qtx.43.1711367116196; Mon, 25 Mar 2024 04:45:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711367116; cv=pass; d=google.com; s=arc-20160816; b=DwlEovmpqM5+zu/8L5pqT3nh1QJ1R2RLXlnHpG2nJ+JWUjQQeplLk1DJGNfE39R8Ob ArI178hxysZPy3CYMcrELFryv3K6CbrqzXiGgo2QKkOwhWXQUsX4gfRL4RPrRd6PgDiK fKC9hXrkSm6kiuCJa05928GweJYOLOzLH3lg2EFHcOTsL/F+K0XpNV4sC2/IR127EXsW 5Cr9eHb8SKlPIwbbmx+BpecobOavY4T+kQIM7nrZ5f1qqjv3zDRXNYlFwERYDENmetRi GMJNS1YQ9eSU5+AXkoK9dzaM0l+T5v0F/+q+WSlXfv8globyIj4Wqe8RR5yRqL38HCv4 5uJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xtCEzs06vB781BmY1haTw8eDlhbCVvEz7Sf9MGDCha8=; fh=TvCTI2UtvmY+buOF3Se+yH8HIg2oy4yuaanJIghw17E=; b=I/H+m2/myoMIgHMN6zF8BnsC4RckddHeE8MNtqsjjgo9lUJS0vqC8RtRAdqKN4Ce6D VWgPuQHszmdB74wBkEP76wJPH0fu2QwMgiq8oTXhbilRSLPherou3NRorsScHc1LsrRj blyjMahgFiKlilhwNE8zjAAbKVJaq2XaXgbmd4PwszkzsH46Pcwk7eCiRXw+vJRq0kay DlC8EIX5gn7csBcdufbOedNfIFI09sdkI3zQggD5YhDdq80A1UsdWNOZYLWJFDN6x/q3 nrfvfdyl6+dexfhsRrunseSiEIfcYmL1xVoy+wRs9jN/Q1ON90StCWiCE386EZIYy6qj rdVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iT9JMWCl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i4-20020a05622a08c400b00431325056e9si5578158qte.627.2024.03.25.04.45.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 04:45:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iT9JMWCl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CB6D11C352A8 for ; Mon, 25 Mar 2024 11:45:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C9943BB1C7; Mon, 25 Mar 2024 03:33:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iT9JMWCl" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F87217CF44; Sun, 24 Mar 2024 23:43:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323806; cv=none; b=t8NfVRmMC0uqohe8THivOMklGl7AM6twTvmR3bhPvg998b0YHyzSSruMuBDy5AGxPSRR1LE8K3m+wxJVnPDdHncaHfgNe+to/tIT2a8zJNuGCJTa40Se5M+Bz5fmmVWY0japbJ4uQ3Qgw74cf+Divamt7yn5fjRF7GW3fzymBGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323806; c=relaxed/simple; bh=wKblKOnclTeKSAoujBU//Prn5MTCOKTjOvtWnq63Pws=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XDKGK0OupUy17emRDov8PfjEfUiXnabQMxx8ToDPl+PioG503t6TAxW54v6vAem8nYQv5BW6YQe1n8MXI8K1ql0J8GPUTRUSStWmCyQR6jvt5yXNA5FveJDWGLizUh63wOdqMTj4W2AOdCFElqi5Sry6WNhmhYmzdqU6LldsOok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iT9JMWCl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E99BC43394; Sun, 24 Mar 2024 23:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711323805; bh=wKblKOnclTeKSAoujBU//Prn5MTCOKTjOvtWnq63Pws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iT9JMWClFQReHIihI6+Vn2fd6CTk7cpyw4uWl5Xs+VjBBWleTVraCb05twsj9zcSu ZNb5FGfOv3nezfFiqP9+lTAfCfHVQqYbtcLIRvaEym5vhfLQpoFIKLfZlD2I6w74y3 uVxpyF37JyeuYW6xkI0ANxpu9ao8ul6V9O3UfzDrBPqNRoWEYOBa2j22OGxPb/lpVX 2cgMYzkmG/IhtYD49OMBugWOhmb+8k0SdKF6bhGQD4LU6H+YdDL5IGP+iX9zcsJc// mjCFP1bBLyNkVWmb5LPU6Aq2LvvBiP27VCKjVnlM3q+rV31jOWqmRcminDulNX/UJf 18whMyT3TccfA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Luca Weiss , Daniel Thompson , Lee Jones , Sasha Levin Subject: [PATCH 5.10 183/238] backlight: lm3630a: Initialize backlight_properties on init Date: Sun, 24 Mar 2024 19:39:31 -0400 Message-ID: <20240324234027.1354210-184-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324234027.1354210-1-sashal@kernel.org> References: <20240324234027.1354210-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Luca Weiss [ Upstream commit ad9aeb0e3aa90ebdad5fabf9c21783740eb95907 ] The backlight_properties struct should be initialized to zero before using, otherwise there will be some random values in the struct. Fixes: 0c2a665a648e ("backlight: add Backlight driver for lm3630 chip") Signed-off-by: Luca Weiss Reviewed-by: Daniel Thompson Link: https://lore.kernel.org/r/20240220-lm3630a-fixups-v1-1-9ca62f7e4a33@z3ntu.xyz Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/video/backlight/lm3630a_bl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/backlight/lm3630a_bl.c b/drivers/video/backlight/lm3630a_bl.c index 419b0334cf087..2aade66db3cf4 100644 --- a/drivers/video/backlight/lm3630a_bl.c +++ b/drivers/video/backlight/lm3630a_bl.c @@ -339,6 +339,7 @@ static int lm3630a_backlight_register(struct lm3630a_chip *pchip) struct backlight_properties props; const char *label; + memset(&props, 0, sizeof(struct backlight_properties)); props.type = BACKLIGHT_RAW; if (pdata->leda_ctrl != LM3630A_LEDA_DISABLE) { props.brightness = pdata->leda_init_brt; -- 2.43.0