Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 554a8797 authored by Ilia Lin's avatar Ilia Lin
Browse files

gsi: Fix NULL pointer dereference on event-less channels



If gsi_start_channel() or gsi_stop_channel() are called
on a channel with no event ring allocated, there will be
null pointer dereference error.
Adding null pointer check.

Change-Id: I200aa09f49c2394041f66c33c458f7daa9aeaf8c
Signed-off-by: default avatarIlia Lin <ilial@codeaurora.org>
parent 8ca7410b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment