summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/control.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/control.c b/audio/control.c
index 3c14c230..9b062fbd 100644
--- a/audio/control.c
+++ b/audio/control.c
@@ -393,7 +393,8 @@ static void avctp_unref(struct avctp *session)
if (session->io)
g_source_remove(session->io);
- session->dev->control->session = NULL;
+ if (session->dev)
+ session->dev->control->session = NULL;
if (session->uinput >= 0) {
ioctl(session->uinput, UI_DEV_DESTROY);