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

Commit bc63c139 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Fix possible access to freed variable" into msm-4.9

parents 27437e1b dc4cf78d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1345,6 +1345,7 @@ static uint8_t hdlc_reset;

static void hdlc_reset_timer_start(struct diag_md_session_t *info)
{
	mutex_lock(&driver->md_session_lock);
	if (!hdlc_timer_in_progress) {
		hdlc_timer_in_progress = 1;
		if (info)
@@ -1354,6 +1355,7 @@ static void hdlc_reset_timer_start(struct diag_md_session_t *info)
			mod_timer(&driver->hdlc_reset_timer,
			  jiffies + msecs_to_jiffies(200));
	}
	mutex_unlock(&driver->md_session_lock);
}

static void hdlc_reset_timer_func(unsigned long data)