From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79D70EB64DA for ; Tue, 18 Jul 2023 09:46:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231176AbjGRJqf (ORCPT ); Tue, 18 Jul 2023 05:46:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbjGRJqe (ORCPT ); Tue, 18 Jul 2023 05:46:34 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5AACA9E for ; Tue, 18 Jul 2023 02:46:32 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 767D82F4; Tue, 18 Jul 2023 02:47:15 -0700 (PDT) Received: from pluto (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 053623F67D; Tue, 18 Jul 2023 02:46:30 -0700 (PDT) Date: Tue, 18 Jul 2023 10:46:28 +0100 From: Cristian Marussi To: Sukrut Bellary Cc: Sudeep Holla , Dan Carpenter , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] firmware: arm_scmi: Fix signed error return values handling Message-ID: References: <20230718085529.258899-1-sukrut.bellary@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230718085529.258899-1-sukrut.bellary@linux.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 18, 2023 at 01:55:29AM -0700, Sukrut Bellary wrote: > Handle signed error return values returned by simple_write_to_buffer(). > In case of an error, return the error code. > > Fixes: 3c3d818a9317 ("firmware: arm_scmi: Add core raw transmission support") > Reported-by: Dan Carpenter > Signed-off-by: Sukrut Bellary > --- > This is based on static analysis. Compilation tested. > --- Hi Sukrut, thanks for this. Reviewed-by: Cristian Marussi Tested-by: Cristian Marussi Thanks, Cristian