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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6231FC433F5 for ; Mon, 23 May 2022 07:01:28 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.335477.559646 (Exim 4.92) (envelope-from ) id 1nt23y-0002Xp-AF; Mon, 23 May 2022 07:01:10 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 335477.559646; Mon, 23 May 2022 07:01:10 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nt23y-0002Xi-7E; Mon, 23 May 2022 07:01:10 +0000 Received: by outflank-mailman (input) for mailman id 335477; Mon, 23 May 2022 07:01:09 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nt23x-0002Xc-8W for xen-devel@lists.xenproject.org; Mon, 23 May 2022 07:01:09 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-sth1.inumbo.com (Halon) with ESMTP id 1e58dca4-da66-11ec-bd2c-47488cf2e6aa; Mon, 23 May 2022 09:01:07 +0200 (CEST) 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 BCBF5139F; Mon, 23 May 2022 00:01:06 -0700 (PDT) Received: from [10.57.7.84] (unknown [10.57.7.84]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7C90A3F66F; Mon, 23 May 2022 00:01:05 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 1e58dca4-da66-11ec-bd2c-47488cf2e6aa Message-ID: Date: Mon, 23 May 2022 09:00:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] xen/iommu: dt: Check the return value of xsm_deassign_dtdevice() Content-Language: en-US To: Julien Grall , xen-devel@lists.xenproject.org Cc: Julien Grall , Stefano Stabellini References: <20220522165900.83104-1-julien@xen.org> From: Michal Orzel In-Reply-To: <20220522165900.83104-1-julien@xen.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Julien, On 22.05.2022 18:59, Julien Grall wrote: > From: Julien Grall > > xsm_deasign_dtdevice() will indicate whether the caller is allowed s/deasign/deassign/ > to issue the operation. So the return value has to be checked. > > Spotted by clang static analyzer. > > Fixes: fe36cccc483c ("xen/passthrough: Extend XEN_DOMCTL_*assign_device to support DT device") > Signed-off-by: Julien Grall Apart from that: Reviewed-by: Michal Orzel