From patchwork Tue Oct 20 23:25:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 7453731 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1B87B9F36A for ; Tue, 20 Oct 2015 23:25:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 441C5207A5 for ; Tue, 20 Oct 2015 23:25:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5816320788 for ; Tue, 20 Oct 2015 23:25:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752191AbbJTXZW (ORCPT ); Tue, 20 Oct 2015 19:25:22 -0400 Received: from resqmta-po-12v.sys.comcast.net ([96.114.154.171]:59535 "EHLO resqmta-po-12v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752138AbbJTXZV (ORCPT ); Tue, 20 Oct 2015 19:25:21 -0400 Received: from resomta-po-03v.sys.comcast.net ([96.114.154.227]) by resqmta-po-12v.sys.comcast.net with comcast id XbQw1r0064ueUHc01bRL7M; Tue, 20 Oct 2015 23:25:20 +0000 Received: from mail.gonehiking.org ([73.181.52.62]) by resomta-po-03v.sys.comcast.net with comcast id XbRJ1r00J1LXgTt01bRKP3; Tue, 20 Oct 2015 23:25:20 +0000 Received: from lorien.internal (lorien-wl.internal [192.168.1.40]) by mail.gonehiking.org (Postfix) with ESMTP id AF575A1543; Tue, 20 Oct 2015 17:25:18 -0600 (MDT) 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 v2 1/3] sound/usb: Fix media_stream_delete() to remove intf devnode Date: Tue, 20 Oct 2015 17:25:14 -0600 Message-Id: <192c21ec5392e122c22caeca2b19f50fea4440b0.1445380851.git.shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1445383520; bh=bZLi6dREJnC6rj6OVAC3xdqDQQPenHV8dq7VmOW8wSM=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=RZSEg2cEhS+ke0IF1lu4mLZGJ0eMyuqV/mti/k+CwOTLs2MFewB5DqL76baqkv60D deTUPzVOyfb6MTaOorWSNYAF0uHWsp+tnEIbN1CVUVH1upg2TzzoaPDccTYPOXvo2a 4OG6A27K/F5BYs7P06FXVj8dJYHscDBUEwsuehsu27ntxmiGNaQIuc3gyIrqlL2DXU A8YispYugZ/sdHShEW+MtKSCBfYOeZEwMPtSmZF4Tk3fPirscd7dBsyOPC5Zft1OoG I19R7yfUQM/LDc2vAXhV9/xOIJ7aoE7m4Yl6ht/5VwPnbafiYQbrIPVyrwtsy91fSW P7YB6BCeRCD3A== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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); }