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

Commit c3fe8884 authored by Gilad Broner's avatar Gilad Broner
Browse files

msm: tspp: add null check in sps callback



tspp_sps_complete_cb might get called with NULL notify object,
or NULL userdata pointer. Protect against NULL pointer access.

Change-Id: I8f393a9b43a8be5dae3d71de463295db514faa17
Signed-off-by: default avatarGilad Broner <gbroner@codeaurora.org>
parent 0bb69bc0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -571,8 +571,12 @@ static irqreturn_t tsif_isr(int irq, void *dev)
/*** callbacks ***/
static void tspp_sps_complete_cb(struct sps_event_notify *notify)
{
	struct tspp_device *pdev = notify->user;
	struct tspp_device *pdev;

	if (!notify || !notify->user)
		return;

	pdev = notify->user;
	tasklet_schedule(&pdev->tlet);
}