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

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

Merge "diag: Free the memory in diagfwd_peripheral_exit()"

parents 390a5dab 91992a1f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -484,6 +484,7 @@ void diagfwd_peripheral_exit(void)
	uint8_t peripheral;
	uint8_t type;
	struct diagfwd_info *fwd_info = NULL;
	int transport = 0;

	diag_smd_exit();
	diag_socket_exit();
@@ -506,7 +507,10 @@ void diagfwd_peripheral_exit(void)
		driver->diagfwd_dci_cmd[peripheral] = NULL;
	}

	kfree(early_init_info);
	for (transport = 0; transport < NUM_TRANSPORT; transport++) {
		kfree(early_init_info[transport]);
		early_init_info[transport] = NULL;
	}
}

int diagfwd_cntl_register(uint8_t transport, uint8_t peripheral, void *ctxt,