Diff between 1707a836223093de92f7911ca703ba9fa99e44b4 and 922a8a8bd4949b073e6423a0f0d59bb273d88014
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/a2dp.c | +3 | -0 | modified |
Full Patch
diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index a3c294b..43da380 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -1327,6 +1327,9 @@ static struct a2dp_remote_sep *find_remote_sep(struct a2dp_channel *chan,
{
struct avdtp_remote_sep *rsep;
+ if (!chan || !sep)
+ return NULL;
+
rsep = avdtp_find_remote_sep(chan->session, sep->lsep);
return queue_find(chan->seps, match_remote_sep, rsep);