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

Commit 1743bae5 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 421d75e4 575b6566
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -632,14 +632,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;