From 3902e9d2e9f0a5983256fc9e937493fd76559099 Mon Sep 17 00:00:00 2001 From: Nick Pelly <npelly@xxxxxxxxxx> Date: Thu, 26 Mar 2009 15:09:19 -0700 Subject: [PATCH] Null pointer check in avctp_unref(). This fixed crashers in 3.36. Not verified in 4.x. --- audio/control.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/audio/control.c b/audio/control.c index 29ac204..5dfcfc2 100644 --- a/audio/control.c +++ b/audio/control.c @@ -435,7 +435,7 @@ static void avctp_unref(struct avctp *session) if (session->io_id) g_source_remove(session->io_id); - if (session->dev) + if (session->dev && session->dev->control) session->dev->control->session = NULL; if (session->uinput >= 0) { -- 1.5.5