From patchwork Tue Nov 10 20:40:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 7592181 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 168F5BF90C for ; Tue, 10 Nov 2015 20:47:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 40D8320605 for ; Tue, 10 Nov 2015 20:47:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 503A6205F9 for ; Tue, 10 Nov 2015 20:47:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751825AbbKJUrF (ORCPT ); Tue, 10 Nov 2015 15:47:05 -0500 Received: from resqmta-po-12v.sys.comcast.net ([96.114.154.171]:58631 "EHLO resqmta-po-12v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751131AbbKJUq5 (ORCPT ); Tue, 10 Nov 2015 15:46:57 -0500 Received: from resomta-po-18v.sys.comcast.net ([96.114.154.242]) by resqmta-po-12v.sys.comcast.net with comcast id fwmc1r0035E3ZMc01wmwit; Tue, 10 Nov 2015 20:46:56 +0000 Received: from mail.gonehiking.org ([73.181.52.62]) by resomta-po-18v.sys.comcast.net with comcast id fwmv1r00B1LXgTt01wmvyl; Tue, 10 Nov 2015 20:46:56 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id 6C5E79F371; Tue, 10 Nov 2015 13:40:53 -0700 (MST) From: Shuah Khan To: mchehab@osg.samsung.com, tiwai@suse.de, perex@perex.cz, chehabrafael@gmail.com, hans.verkuil@cisco.com, prabhakar.csengg@gmail.com, chris.j.arges@canonical.com Cc: Shuah Khan , linux-media@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH MC Next Gen v3 1/6] sound/usb: Fix media_stream_delete() to remove intf devnode Date: Tue, 10 Nov 2015 13:40:44 -0700 Message-Id: <192c21ec5392e122c22caeca2b19f50fea4440b0.1447184000.git.shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: References: In-Reply-To: References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1447188416; bh=gsF3bo7GQcLXlK7n7r9eJs+MflBo11muXUi4AOHIXS0=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=brtW+bdxFLPNrje/EcfVapAKZ0ve9qPoAcimiiW3drrL/yYg7GZ4uF73Yu387/ELr K37o61uYHUU6+IF1OoW5E7ScJJMQrzUv0Nuu3m2fJItHGcZssMhr6YAJl7U3EDEnr7 LIsVp3apZExY7kazdC28UdCCkyrPKYBJI3SoO+o0W+ZqhYb0ScFfj8lCuA50FF2cm3 k9owVdx+7erOj3Q1sBPRIHe802ACq0hU2aSJIMxJYkJ88DTj5Uj4/kU4cBWHlgy9TJ iuhOPwhAh8Aj0ql1auSEAJYvugD3bSEDa7d+D19aChS9wjuCYF5oV/pLhhc0Xeheiw m+576mt+HncVA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP media_stream_delete() doesn't remove intf_devnode. Fix it to call media_devnode_remove() to remove the intf_devnode. Signed-off-by: Shuah Khan --- sound/usb/media.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/usb/media.c b/sound/usb/media.c index 9b455ad..0cbfee6 100644 --- a/sound/usb/media.c +++ b/sound/usb/media.c @@ -173,6 +173,7 @@ void media_stream_delete(struct snd_usb_substream *subs) mdev = media_device_find_devres(&subs->dev->dev); if (mdev) { media_entity_remove_links(&mctl->media_entity); + media_devnode_remove(mctl->intf_devnode); media_device_unregister_entity(&mctl->media_entity); media_entity_cleanup(&mctl->media_entity); }