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

Commit 5f4c6f91 authored by Linux Build Service Account's avatar Linux Build Service Account
Browse files

Merge 14c551f6 on remote branch

Change-Id: I79493575f272fa5eea21b6a5b0b629468ec09a3b
parents dbbde398 14c551f6
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -2130,7 +2130,17 @@ static int q6lsm_mmapcallback(struct apr_client_data *data, void *priv)
		return 0;
	}
	
	if (data->payload_size < (2 * sizeof(uint32_t))) {
	/*
	The payload_size can be either 4 or 8 bytes.
	It has to be verified whether the payload_size is
	atleast 4 bytes. If it is less, returns errorcode.

	The opcode for 4 bytes is 0x12A80
	The opcode for 8 bytes is 0x110E8.
	 
	*/

	if (data->payload_size < (2 * sizeof(uint16_t))) {
		pr_err("%s: payload has invalid size[%d]\n", __func__,
			data->payload_size);
		return -EINVAL;