Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2490355lqp; Sun, 24 Mar 2024 23:19:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVelARh8EFcB78lCai0K/1Oh3C001FWlOl+JJOjIstneFDmWVpfUUxCOzZASkZGCyqhIGoBRdgcmLp17z3OYLqknfoWJxrLPPIn4WrXjw== X-Google-Smtp-Source: AGHT+IGIPw5psiF/+VuI+lCg4DsbMgi59zrZOQ2k1igHnbQpES/rNgWrhuXpkOgGFc8BrYmqU+bB X-Received: by 2002:a25:ac68:0:b0:dc6:4d0c:e9de with SMTP id r40-20020a25ac68000000b00dc64d0ce9demr4426594ybd.0.1711347545075; Sun, 24 Mar 2024 23:19:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711347545; cv=pass; d=google.com; s=arc-20160816; b=tYj7BuYq/xvc8vs+5/tQke5QAC+G94JLwUB+8HXYqQ6hlC0v/Kf5IKHaiSswSikxYY vMJeCSxkPsbCGll+Lusjyj0BxeJ+m6TFBz0bnqrsdPFnYGBBg9QbrNFfS7ETFAoNeC7U 5PSxl8RuQ2WYhQJo/2tMyhxWLj6Ii2iLFro+218pXrUUbCjGhQE8zjGGCQfFF8u+uSz3 ziqVlqphSrTCurHMpR6XxOK5wHSAVvdBNnf0rsWgmeBTo6XjZ4osTk9C7d7/BvL6UmQ5 wNoz7vz9F649iyKAk9TxPyOIJQtjdwB1Vqb8PUjnn8okMGg/isAuqhgFjmLmFw5yflCG 2Xzw== 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=4is3hZeiq14w8YNXQhRWnouqiP2BiJReAN4rFCbTqPE=; fh=TvCTI2UtvmY+buOF3Se+yH8HIg2oy4yuaanJIghw17E=; b=jLHf7O0ZHWsm1iJTDonV9/XHNsjRepYBxBdlVAKSVK6aGVZ4ZS1e/AjHWodDr4/eou 8TMMTSeBOcHvu0Qn7hTpPt1lDoDKmhimsOleKNQA1FtHEQPRC1vAs3LqGVBcmWDQ7X8T 1eZXiQMeJGQjzIVmD89iry//Nvm+fJMj6Gq3IF/nc4ualpFPSz/2hqxz2pdxUmrxAms6 RV4aGiyASU4C/lhQkv1PA1OrxoyqQLuPs3AlUMAaJnXSNI4CWKGhPxxCCiBLHRYbqunL lqFei00hiuZHbD5HU5aK6rYNL9+mWIQtXLgaXfkJ1afOe/S/dyUgfkylKATJ/Y57DaFb HkTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F7mR1G2W; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-114591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114591-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 c10-20020a05622a024a00b004315e7383f0si468475qtx.714.2024.03.24.23.19.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 23:19:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-114591-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=F7mR1G2W; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-114591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114591-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 C69D61C2C02D for ; Mon, 25 Mar 2024 06:19:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D692E29D393; Sun, 24 Mar 2024 23:54:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="F7mR1G2W" 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 37635232118; Sun, 24 Mar 2024 23:17:36 +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=1711322257; cv=none; b=qql5cpAwM/4ecmw4An15LLmJ++AXyV/ImmEpPLYghsZl2N7BB6EvUU5ZbNEilKll5xf5nhY2gfs1+U3GrQLZsPfq6F5i9byKMyGAt1RUkT7FIcmiGx3wfGucLmIMtxnfafn7r92TM+AxP5aEz/6Z9p8xHJ2v+CzE1HOeYEqmIMs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322257; c=relaxed/simple; bh=mA/FdB/ILepXOKnaZRIA8fPzJ15qQPq8YcnleMPrszk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C4Io1bj0pQRaXIOh+Ql59B5NBwgOkCB4UGXoTeVh5iA2HUeNeUtRTyD8CXnIleFvh66U7SeUqjMbMdhU3exduabsE5P7dyk2nmdRPQj9fsVur2lUcJpkeMvd4T+f409l3RLCSJgf0McON4UxZrBve6Fo/sq2+8rdPXdyBtwT0ho= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=F7mR1G2W; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E516C43390; Sun, 24 Mar 2024 23:17:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322256; bh=mA/FdB/ILepXOKnaZRIA8fPzJ15qQPq8YcnleMPrszk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F7mR1G2WIGxhl4D6xn0w4BCtur3SUp2hwKeh4FFlN3PKtS0pzz4cPMmMwrr2Q0v/u lDMr0N4NFe2GHX4/S4yA2zitTuXNq6KCwUFzmjBrkuWPYl3Qa6dvIl6bnTD8JqwuV7 0ziV0nMLk8dz8RWUbdfXK4oe6bP4EkQ4cUljcCzk8jYVkE0BVquyqz3/OnqKfQiEP6 9tNTOtNYPdGNuxKA6do7JKLFiEEr34HNPwA+pDZ1/UDP+0n40q1Pdftge0Ogawd+ZK V/Lk6L/JNeX2GBOVBS2g6X1o+ApN1ZHLlsm73NeHbcUbPH9x4pJ2lw0jjqotsQnkE1 tgkPJlnXq2d6g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Luca Weiss , Daniel Thompson , Lee Jones , Sasha Levin Subject: [PATCH 6.1 338/451] backlight: lm3630a: Initialize backlight_properties on init Date: Sun, 24 Mar 2024 19:10:14 -0400 Message-ID: <20240324231207.1351418-339-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-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 475f35635bf67..855c275754578 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