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

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

Merge "diag: Handle command registration mutex correctly"

parents 868a50a2 3e10c02e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -698,8 +698,10 @@ void diag_cmd_remove_reg(struct diag_cmd_reg_entry_t *entry, uint8_t proc)
	temp_entry = diag_cmd_search(entry, proc);
	if (temp_entry) {
		item = container_of(temp_entry, struct diag_cmd_reg_t, entry);
		if (!item)
		if (!item) {
			mutex_unlock(&driver->cmd_reg_mutex);
			return;
		}
		list_del(&item->link);
		kfree(item);
		driver->cmd_reg_count--;