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

Commit 88518c1e authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Update hdlc mode for peripherals after mdlog exit"

parents 6f626a60 6b03048b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -481,9 +481,11 @@ static void diag_close_logging_process(const int pid)
			}
		}
	}
	mutex_lock(&driver->hdlc_disable_mutex);
	mutex_lock(&driver->md_session_lock);
	diag_md_session_close(pid);
	mutex_unlock(&driver->md_session_lock);
	mutex_unlock(&driver->hdlc_disable_mutex);
	diag_switch_logging(&params);
	mutex_unlock(&driver->diagchar_mutex);
}
@@ -1419,6 +1421,8 @@ static void diag_md_session_close(int pid)
			driver->md_session_map[proc][i] = NULL;
			driver->md_session_mask[proc] &=
				~session_info->peripheral_mask[proc];
			driver->p_hdlc_disabled[i] =
				driver->hdlc_disabled;
		}
	}
	diag_log_mask_free(session_info->log_mask);