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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 35C60C54E94 for ; Wed, 25 Jan 2023 23:57:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+SltbGZHTXbxsM8NTAfZEjP29WQZ6lPVhVtuZ9KIbOc=; b=fqJLdoc6GcOdma DevE5lHEA5h4NJNhDo/jO246+GWAb2T43W90dpWTPi45yU8B/7wqP3BQ1WrBUjahkJ3wU2WLL4T94 hWqoXRi9b09YFIT+XF2SY8DF7KOfRJV1shom3CC7UbSJPTJpT1qL8KfM/EOlKMhnvBMkEGVrxX6MC p+7NkYjhjGS0VGyN1a/A9Mkfxxx0xMlfAnQkgkSOFlK8+dJaBvzue2h77vj4fz3Rgp010jIl+CKLf RLVi/filREoOswtUVGshffnWSjvDT++PLFrQKwEcxVBKMwY2dYmHH2hf9eziQ3Ya2K/K+nHzkwRvR njZHYoFVQu4xy20PPfzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKpco-0096ma-7e; Wed, 25 Jan 2023 23:56:18 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKpck-0096m9-Tq for linux-arm-kernel@lists.infradead.org; Wed, 25 Jan 2023 23:56:16 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0BEF7615B1; Wed, 25 Jan 2023 23:56:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28509C433EF; Wed, 25 Jan 2023 23:56:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674690973; bh=kJ8ABJ0KvkhO/F8tnFyaa5QXvT/bIqvvJq2iFu7Vw+w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vOUxx+b+sOXVJJ3qWY8VPJipTrNYDxRT5FSK9u8oMJvwIK6h/MErzfGfG1F4eXNNa KRR9Fz5TT806duDIOWHJfDHrsRps5qBimu1Now/auQ6FD5nl/9H0dq2SGBc2uWz+jm 3EjsHz5+Tggioo+k+Uc1MFilDrrLWXZK05JO+oufdhLZaujZv+OiNvQMAigxZBXfrh spqv2aP/BESRbhDLa38KfgVNBqOcYsRMz0TPU5N9R1SCbGEjtGGNIEpJqKEoFUYkck XJceygbKfNTLf5ZkIlIK6OewwXU9nadbI6T3PClvU+pPuOfmthKMxy1sG3BJ8rW7CH LZO1MJp9VTQxA== Date: Thu, 26 Jan 2023 07:56:06 +0800 From: Shawn Guo To: Angus Chen Cc: s.hauer@pengutronix.de, linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk Subject: Re: [PATCH] ARM: imx: Call ida_simple_remove() for ida_simple_get Message-ID: <20230125235605.GF20713@T480> References: <20230105061123.2085-1-angus.chen@jaguarmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230105061123.2085-1-angus.chen@jaguarmicro.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230125_155615_020295_1A0E6D96 X-CRM114-Status: GOOD ( 10.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jan 05, 2023 at 02:11:23PM +0800, Angus Chen wrote: > The function call ida_simple_get maybe fail,we should deal with it. > And if ida_simple_get success ,it need to call ida_simple_remove also. > BTW,devm_kasprintf can handle id is zero for consistency. > > Fixes: e76bdfd7403a ("ARM: imx: Added perf functionality to mmdc driver") > Signed-off-by: Angus Chen Applied, thanks! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel