Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp662691rdb; Mon, 15 Jan 2024 09:21:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOMgjqoeZJRjpwAOlIper8d5hyhN8SPqY/bNrE9A0qwY5TR90XvBHrWrMhvNb2DXCUmTW/ X-Received: by 2002:a92:c08e:0:b0:360:a36d:ce8a with SMTP id h14-20020a92c08e000000b00360a36dce8amr5290481ile.99.1705339314313; Mon, 15 Jan 2024 09:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705339314; cv=none; d=google.com; s=arc-20160816; b=g3MlyeiqhG0mawe2ECZqtTdO/XAxnqKalODj9J3jntsXcr4Gk3x8NOzA2vU2JAHCNq 8mKh4ZSulfk7DRshSiCBODX6Sf34Ezx3IX4hxyee6jeJ4FZNMlSw++6GAwTzCEfAyMny sMYIyh1eFuAj9w4JlEKKmvc5/4ewUyZqQ1aATywfnG4N3LFOboHdS9kdJHHK4vh1dX5M +CEU7mp1HgYpUuwad4TepbtcQxdv7ylDUFrm0udNSHASDrKutODs1hSbtVK3E6/xSir5 BFzbwK1XNNCvwHDzUzEytTzs1I/dqgmb7K+tcyaweLd2JcEnglfmXRumSztOjMXVoCEW QKpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IjkFYZF4OJsSCux1ae0KuULOn1wykr+CXrlgMJayfq0=; fh=4xoeKFeyztvgf7IQtCowpx23mgRIr/bD9jr38c6FdvE=; b=0LWVtlOxD6PPftpX5gk5YBFKKbKH+Vhqd3AqsVH9m4fN9q39XOQUNY/y/n22TCilUc yrI87HDcqarDe6ynF6H/D+IYY9xDvoyfu8pLsmxmeLmzmwRQgOPmq3l7I89mVERl4bih UxoZx8tjtY3eVDBWpImATL+vGFKt4kgrdMdh9RzYAAhwPItth2kCKTMNOJU+icKZzxTo O1jWYHn46WXG4ePGPhlBHaEpgB5UmXsiwAR9srxz29K7UT+9Rcp9Ek98Nm2PJeJAzKMW 38Rb1I/VdCjw2wfjlR6I3s+ojUDfMKsn8H5HoMZU+zFaqkjsbBCB2oCvxRuv5l4Q5MlQ KbhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ii4ZQbpN; spf=pass (google.com: domain of linux-kernel+bounces-26312-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26312-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i8-20020a632208000000b005c179c00758si9346963pgi.891.2024.01.15.09.21.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 09:21:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26312-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ii4ZQbpN; spf=pass (google.com: domain of linux-kernel+bounces-26312-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26312-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0AB6FB21D99 for ; Mon, 15 Jan 2024 17:21:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCA6018050; Mon, 15 Jan 2024 17:21:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ii4ZQbpN" Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8189517C91 for ; Mon, 15 Jan 2024 17:21:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-40e78238db9so11222325e9.3 for ; Mon, 15 Jan 2024 09:21:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705339289; x=1705944089; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=IjkFYZF4OJsSCux1ae0KuULOn1wykr+CXrlgMJayfq0=; b=ii4ZQbpNn+VpHZoDLjK3ZkDmdggSBxUJ+uid6MeMEI2OL9Of/yRkoklnBdiYtvNdwO 6hvvn0zrrNshMmIglQW6EZOPwFxPZewGScw+yGEdzp6gw0QkE2MRrp+8CmiiLSsEdYPF ZXbfq6sSyp8xXrfIiTw1B0kzAaQ1at62qeoi5LGQ+YgVlfp5QvR4lufoljfKAf1OO1Jo tt+voRkrCFGdKXqjPazTnHU432acDA+JQMHlRGaHb4MiXURe4U7avEnaeitHQ3Y56p7i XsY64A+wTC2a3Nf3P/W6EXrKPL7Dq4/bgO8ZKjIDlVyDEZ8k9pHzOTd+yE9nQ8JQc6CT MPMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705339289; x=1705944089; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IjkFYZF4OJsSCux1ae0KuULOn1wykr+CXrlgMJayfq0=; b=YmjCf7Kl1Z1QJGqbVGZYQkL2EPhL+A/5BAaXiwlXThW8s/4FVeRgMAS76m8wbQKuH3 LYcgzVK/OkBUeKATo/RXcnXLBfaXVHAYsw06nzxYwOuy7L1zNi8r/dB4tNWxivzK52xD wrG4/Xm7d3eEAyLUTbn9ySkWy1nGlLLbGRYH8rzBD7bz36lYYXrvoD06eOGdcEjkZFPd GGPBMURY56ftrBbgsZKuUM4a5JOF+mO9xCIryYFneg5OIYDMsr0tmmiX01GoAQZ5TlX1 ewJMYtheguUlbkr6o13WQvgogHdTs6bMKiG3VlF+JpkYXsI3uWSbw3l3wOVQJq4JZyza q3jg== X-Gm-Message-State: AOJu0YzeedKqImcIPX2g5u1KxPQudUQxoeFrWsKAdGpqfaKj3sPyZ2Ir ShhNdfhtOGARZBjx7CpIUozHrIoqm1C+EA== X-Received: by 2002:a05:600c:44f:b0:40d:3fee:97f6 with SMTP id s15-20020a05600c044f00b0040d3fee97f6mr3339548wmb.34.1705339288709; Mon, 15 Jan 2024 09:21:28 -0800 (PST) Received: from aspen.lan (aztw-34-b2-v4wan-166919-cust780.vm26.cable.virginm.net. [82.37.195.13]) by smtp.gmail.com with ESMTPSA id l6-20020a7bc346000000b0040d81ca11casm16167428wmj.28.2024.01.15.09.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 09:21:28 -0800 (PST) Date: Mon, 15 Jan 2024 17:21:26 +0000 From: Daniel Thompson To: Andy Shevchenko Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones , Jingoo Han , Helge Deller , Dan Carpenter Subject: Re: [PATCH v1 1/1] backlight: hx8357: Fix potential NULL pointer dereference Message-ID: <20240115172126.GA31203@aspen.lan> References: <20240114143921.550736-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240114143921.550736-1-andriy.shevchenko@linux.intel.com> On Sun, Jan 14, 2024 at 04:39:21PM +0200, Andy Shevchenko wrote: > The "im" pins are optional. Add missing check in the hx8357_probe(). > > Reported-by: Dan Carpenter > Closes: https://lore.kernel.org/r/642e1230-3358-4006-a17f-3f297897ae74@moroto.mountain > Fixes: 7d84a63a39b7 ("backlight: hx8357: Convert to agnostic GPIO API") > Signed-off-by: Andy Shevchenko Reviewed-by: Daniel Thompson Daniel.