From patchwork Thu Aug 24 07:21:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sricharan Ramabadhran X-Patchwork-Id: 9919197 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2365E60353 for ; Thu, 24 Aug 2017 07:24:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1517B289D7 for ; Thu, 24 Aug 2017 07:24:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 09BF428A08; Thu, 24 Aug 2017 07:24:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 057B6289D7 for ; Thu, 24 Aug 2017 07:24:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=XdoFjL7tzpRfuQ3dayS59xwjOv0DPNvuiHK5GEARuMw=; b=DXzW5UJNlDr4pcVkv3akK1Vs/q 7DSLF7rOVJ2/ajE4iSnTOkXTwC3DbjfD6vO+TMflQseBwU5lF8Nb+R6H7+J3xzjFZ6c21dmEMNY67 CeW2K8eX4UZv/9lf+MsiHMcy/QaB0rAghlBK3RBXEL6eDqr5+H065NhSXtJQKzBYPUzBFd3WjyWwh WulfatjK6J+5AZgEYl06YWoFUObbAjywDMak3A3zXPVcRqYC7FJUONR7oBlYPoKQZNUKTxukpe1fn 8zF8HCjHydnpFpR0TrKJ0Fx3I9GVsY+0qKdjw+T/a8kQL0nIC0or4pGWoWANhmf3/ihepSOtD1UBF hO7a+D6A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dkmUt-0001BL-Vi; Thu, 24 Aug 2017 07:24:12 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dkmTN-0008AT-MS for linux-arm-kernel@lists.infradead.org; Thu, 24 Aug 2017 07:22:41 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4F25960731; Thu, 24 Aug 2017 07:22:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1503559338; bh=Zt37DB0nnmbDTmzZu82j0NQxdhjkuZlGG7iGezYYLZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N84XpBZddS04BbVi9fbpyQJ+tWXLXpPVPTYoAKzZYaQIx1oi0gXAoi0Ig5RrK9Gwf BipZe2yeEH+BpKPnaOUMP6ghObgaiYXrb/V4jndCUdsKvk73g6lmFDrELq3lHXC1p3 ip4fFnnbW4o+BJ/j8dli4sVh4RVrCTCZvkkeja3E= Received: from srichara-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sricharan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 35BA86072C; Thu, 24 Aug 2017 07:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1503559336; bh=Zt37DB0nnmbDTmzZu82j0NQxdhjkuZlGG7iGezYYLZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kJVNFF89j3fJtZYnV7IO9cGGV0hSg4/8tb5MyzjFZ815w9feJtU3D1JP0utpJ6F3k o7J7EbFJHoNgWnouozNhcKA8B+aycgBAd5lNEmkSljCWiCzukYQ67dr5LNIcMNrMso D1hyFq/nLEuXj4j1uvXX6ZcIkVWBUZKfeyzJT5T8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 35BA86072C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sricharan@codeaurora.org From: Sricharan R To: ohad@wizery.com, bjorn.andersson@linaro.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 07/20] rpmsg: glink: Do a mbox_free_channel in remove Date: Thu, 24 Aug 2017 12:51:29 +0530 Message-Id: <1503559302-3744-8-git-send-email-sricharan@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503559302-3744-1-git-send-email-sricharan@codeaurora.org> References: <1503559302-3744-1-git-send-email-sricharan@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170824_002237_914493_46EB2847 X-CRM114-Status: GOOD ( 10.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sricharan@codeaurora.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP mbox_request_channel is done in probe, so free the channel in remove. Signed-off-by: Sricharan R Acked-by: Arun Kumar Neelakantam --- drivers/rpmsg/qcom_glink_native.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rpmsg/qcom_glink_native.c b/drivers/rpmsg/qcom_glink_native.c index 94b79e8..21adde3 100644 --- a/drivers/rpmsg/qcom_glink_native.c +++ b/drivers/rpmsg/qcom_glink_native.c @@ -1008,4 +1008,5 @@ void qcom_glink_native_remove(struct qcom_glink *glink) idr_destroy(&glink->lcids); idr_destroy(&glink->rcids); + mbox_free_channel(glink->mbox_chan); }