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: 9919261 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 408F0603FA for ; Thu, 24 Aug 2017 07:26:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32FBF2885B for ; Thu, 24 Aug 2017 07:26:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27DBC28B64; Thu, 24 Aug 2017 07:26:17 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D79B72885B for ; Thu, 24 Aug 2017 07:26:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751667AbdHXH0D (ORCPT ); Thu, 24 Aug 2017 03:26:03 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:60950 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751436AbdHXHWS (ORCPT ); Thu, 24 Aug 2017 03:22:18 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 587F860710; 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=1503559337; bh=Zt37DB0nnmbDTmzZu82j0NQxdhjkuZlGG7iGezYYLZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aNs312t5Mk++7GSjNeUV3CUpCZlCvSloJnCMKbT20mODTgG4PN/Z434H3IgNhCO3L zPNk0nu2pX0MHJ/LpU0/euxQl8u3MPuzac/1ILvj1i/pK0ZBEchTEsUyNZwu8IZRU1 PnTUEKRqoc8HeNeux63IpVhyRiYUrrE4TTRNH7pk= 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 Cc: sricharan@codeaurora.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> Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.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); }