Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2395706lqp; Sun, 24 Mar 2024 17:37:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwM3qTtKlSg9kERYWOWZVa3W+MkeSYa5wiCHUSOzZQVL9ET+lUSukuhBalBZ7VVg37GFSnObQKwHEJidZHuHlt9G+bPjiYI1nkWX8X9w== X-Google-Smtp-Source: AGHT+IHlgjrNR/QOWmGJRSn/7w5Gn2Cu1l7lCmTKYjoOXM6wx3OhQQfS4kMOz1JCiF29DlYl2gqB X-Received: by 2002:a50:d593:0:b0:566:ecce:9d3c with SMTP id v19-20020a50d593000000b00566ecce9d3cmr4321555edi.26.1711327074776; Sun, 24 Mar 2024 17:37:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711327074; cv=pass; d=google.com; s=arc-20160816; b=Rv1xj2uggbLoeSc201J5pcK1J/947Z2no4tk8E/r8MV0kQm4ekL03U+y2EIRBBUxmu j865BHe3IwP+qMJ7blkORbrcTVgRPRHyVm/7b/vKj95JhsT8BZ3d8k22fJ8jvozOgaE2 89nhTdQU3wYAgJCDdtaZbG2zXRMhn7IT/O6v0NYW1Avd456HTozTMS469AGq2XrEyr9s +FdcGmjmQWe/8Dt9dDGFgRoAw6mhqET6dY11esRq2PwFeakH06JhDWlEUPgAK9VlP1ff zZzNM5OuGKuxnCb55EJCxGzNs/bc5nZ1y2/B1aXSAWqFwzBCiut7X7O04M0bhSgUlt2z IREg== 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=YIKQwG/KAyRzicTSb4FESShoy6KRU1kXeTzHHKAdBJk=; fh=TvCTI2UtvmY+buOF3Se+yH8HIg2oy4yuaanJIghw17E=; b=ncx1VJydoAlapot/efwOkgb9s/g89UHQ5W7f9H31OwHPnqGHGWT38Xt1DaJ8nO2eaU 8tKK0DYU7spm2R6QgefSeDAGLWxpofyzNymkRcw0PeY4jsgKzpx2Iruc/eDtCCFm2ke4 nFELDcbn3erOX2I5F7gW+2O3QvNNSMwsv36e02lmHA2VoE0FQNnZ89Q5nxn4KBdpnzyH XD8yrGDa8xQjkBOCrpTUDB5iubYyU/rbvCUgxK8Ogfspw3d938b+CF8R96xm6sry0N6i FF5tBEV/DmronN3OUIXj8yaKqvkYpcLJk/5+CmambGvTRVXXFCFDZRxY/7WcP4EttTF6 qdxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LnuhDtmg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113415-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113415-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q29-20020a50aa9d000000b0056beaa1c108si2007996edc.579.2024.03.24.17.37.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:37:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113415-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LnuhDtmg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113415-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113415-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5AF0B1F25652 for ; Mon, 25 Mar 2024 00:31:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58C3A1A7743; Sun, 24 Mar 2024 22:43:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LnuhDtmg" 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 6A9221A7726; Sun, 24 Mar 2024 22:43:37 +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=1711320217; cv=none; b=eTYThETF5tYhNhedOFgsqMTH46M4WvsJ/YQ1SfjmlqJfkkQK3E/cewBfYOXB07PqQKaJ3xkrdr4Rs7CECn+nbk594RbzXTEY0qT+r2jejFY7OTJdc5WOGtNrHzSpcM0A21C2h1tpwkzMnxRt8NMLgr4Lw6e4cVnoqfR0Io+uw1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320217; c=relaxed/simple; bh=0Vfk3ggn0VG+zY76Y9T7WSrgxH+Qvl3xIAJjF9Q99Ow=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iEmadx6sT7qyy3Ke/I9NAJVEDGQpGl9/UVNroz8XAEX79mZjW6AyRjjV8fyV30gSMpvIv0lLR41FxYn1+HEv1iYTrixWdgUDVaPQTRlF8L9v0ZrpXMNVgNoVZ/H8fh3yeMXah53L5662G97Q89qMLwJjqU27Wld3dcaaBUliYCg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LnuhDtmg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 622B8C433F1; Sun, 24 Mar 2024 22:43:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320217; bh=0Vfk3ggn0VG+zY76Y9T7WSrgxH+Qvl3xIAJjF9Q99Ow=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LnuhDtmgQFcGyqXqULx2BdCSoCZEAF5dyWn15HD0LT0YBwL6xOJkr8KwkWW1Q7hM5 M/dKCGu3/f+DgPDJuabefmWQAUzDgWJtFwAwJJXBcfYBRwNDzVh42c57bOBOXFxQSC oOPIgmNBF6WGVlj4ePuV5jihzwzOkk73ZbU6vONJ8JR+rtnuQcjLqqjt/wH8sKpVkf Z/dIClzyhv3KcmUN0O+J9ioTW0Jk/zc2RLaw08i7AoL6EfGJz2tbMM6EZEeEHMA2rE QPm0PbLgrF04zB252d8HHf2ziIBjdXdALnQOaRuJ4EXVx/t2MXTetnbPyDmiXkhYTK sED/vPXDUmtcg== 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.8 524/715] backlight: lm3630a: Initialize backlight_properties on init Date: Sun, 24 Mar 2024 18:31:43 -0400 Message-ID: <20240324223455.1342824-525-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-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 a3412c936ca28..8e275275b808f 100644 --- a/drivers/video/backlight/lm3630a_bl.c +++ b/drivers/video/backlight/lm3630a_bl.c @@ -343,6 +343,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