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

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

Merge "diag: Close the control channel during SSR"

parents d2750e17 370f6f36
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -652,14 +652,11 @@ static void handle_ctrl_pkt(struct diag_socket_info *info, void *buf, int len)
				 info->name);

			mutex_lock(&driver->diag_notifier_mutex);
			if (bootup_req[info->peripheral] == PERIPHERAL_SSR_UP) {
			if (bootup_req[info->peripheral] == PERIPHERAL_SSR_UP)
				DIAG_LOG(DIAG_DEBUG_PERIPHERALS,
				"diag: %s is up, stopping cleanup: bootup_req = %d\n",
				"diag: %s is up, bootup_req = %d\n",
				info->name, (int)bootup_req[info->peripheral]);
			mutex_unlock(&driver->diag_notifier_mutex);
				break;
			}
			mutex_unlock(&driver->diag_notifier_mutex);
			socket_close_channel(info);
		}
		break;