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

Commit 22cfb421 authored by Linux Build Service Account's avatar Linux Build Service Account
Browse files

Merge 1083615c on remote branch

Change-Id: I661a7ddb411565378bf526f7b960ea536c23eb74
parents f0e96d63 1083615c
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -211,10 +211,11 @@ extract_apf_read_memory_resp_event_tlv(wmi_unified_t wmi_handle, void *evt_buf,
			 param_buf->num_data);
		return QDF_STATUS_E_INVAL;
	}
	resp->length = data_event->length;

	if (resp->length)
	if (data_event->length && param_buf->data) {
		resp->length = data_event->length;
		resp->data = (uint8_t *)param_buf->data;
	}

	return QDF_STATUS_SUCCESS;
}