From mboxrd@z Thu Jan 1 00:00:00 1970 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 E88F957CA1; Thu, 2 May 2024 22:24:33 +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=1714688674; cv=none; b=FBcmFjynVbRCssImzYLg/iIjac9kbGX997JS7MfeQLtm9RVAonF1uCfyD7AUzl4sYxfwPTeZjwUDsFn2PVVKamju4I3z6lmXSDEziI2C/Hqpvw5fKtpmx1Xnt/xrVORFZDzJvcUeNHURmJxqWnEgvv22svBw0Jwp3cCsuz9E0Zk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714688674; c=relaxed/simple; bh=m5C4VvNJit1RDhJf8i/dqNorHaLtupPY9uTZKx4YgMk=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=TFe4A69hjja9/V5ngbC0nXo9itjCSt9TYTXZ9isyr4fTFWl5mAsLVGu7uOkZ9XVIOV7/ybQ94mA4pQmk2lKuYlXP2roQzeBJ+MzHkEpKJDR6G6eZ17ur9rpQ93p8OO+HGxGTw9fMZ9gNJFklp+gwBBiMprrv60UTRbS1Hcza+bA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uYZzqwa9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uYZzqwa9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 695BBC113CC; Thu, 2 May 2024 22:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714688673; bh=m5C4VvNJit1RDhJf8i/dqNorHaLtupPY9uTZKx4YgMk=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=uYZzqwa9Si6ERcU4prohokGVGpCgcznEp7GWeOlppK/Pq6cLNoYar7f5z/7Eji7wC ZuFbIRLT8BpVa1uQFffLCfDeHirKHm3ta7WsrjmCDWK9TEbJIsLCIp2kUkVBsn9241 uA+JuA4cAVd2yDpaENSWAxA0mIaetVR/7c9Xm5Cbe49ZfvifLYP/bU3KLeKh+UoANA 9kPSz2qAZhlYg6Wp1829y7tJOI2rw46hUbQ4ax7zH8ucADbeI+Y8LzHQ8WRnaekS6N Hb2EnjgiiswInjoZa9HOkGqHXvT/Z+NtlmyNxxdw0bss/ux1XgYfqp6ydZpNryL9Je jwQr8PP5y0qcQ== Message-ID: Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <53c31752-c8a2-4098-837e-2f84f03c8748@moroto.mountain> <0d26a80d9b595954aabd8f6c6e18c710.sboyd@kernel.org> Subject: Re: [PATCH] spmi: pmic-arb: Fix of_irq_get_byname() error checking From: Stephen Boyd Cc: Abel Vesa , Neil Armstrong , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org To: Dan Carpenter Date: Thu, 02 May 2024 15:24:31 -0700 User-Agent: alot/0.10 Quoting Dan Carpenter (2024-05-02 00:08:29) > On Wed, May 01, 2024 at 05:55:03PM -0700, Stephen Boyd wrote: > > Quoting Dan Carpenter (2024-04-24 04:42:46) > > > There are two bugs in this code: > > > 1) The "irq" variable needs to be signed for the error handling to > > > work. > > > 2) The of_irq_get_byname() also returns zero on error so change the > > > comparison from < 0 to <=3D 0. > > >=20 > > > Fixes: 932282f154ac ("spmi: pmic-arb: Register controller for bus ins= tead of arbiter") > >=20 > > Sadly this isn't stable because I just send patches over email. > >=20 >=20 > If you're going to send these as email then you should fold it into the > original commit or otherwise people will be confused. I removed the fixes tag. I will fold it in with your SoB, thanks!