10 Nov
2015
10 Nov
'15
9:40 p.m.
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 shuahkh@osg.samsung.com --- 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); }
--
2.5.0