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

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

Merge 4b04b726 on remote branch

Change-Id: Id11d4730e29d7f97a33a05eb9a7ef3fe0d370440
parents 3813545e 4b04b726
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015-2018 The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-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
@@ -1178,6 +1178,9 @@ void hif_fake_apps_resume_work(struct work_struct *work)
		container_of(work, struct fake_apps_context, resume_work);

	QDF_BUG(ctx->resume_callback);
	if (!ctx->resume_callback)
		return;

	ctx->resume_callback(0);
	ctx->resume_callback = NULL;
}
+6 −2
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
@@ -14741,14 +14741,18 @@ extract_roam_scan_stats_res_evt_tlv(wmi_unified_t wmi_handle, void *evt_buf,

	num_scans = fixed_param->num_roam_scans;
	scan_param_size = sizeof(struct wmi_roam_scan_stats_params);
	*vdev_id = fixed_param->vdev_id;
	if (num_scans > WMI_ROAM_SCAN_STATS_MAX) {
		WMI_LOGE(FL("%u exceeded maximum roam scan stats: %u"),
			 num_scans, WMI_ROAM_SCAN_STATS_MAX);
		return QDF_STATUS_E_INVAL;
	}
	if ((num_scans > ((UINT_MAX - sizeof(*res)) / scan_param_size))) {
		WMI_LOGP("%s: Invalid num_roam_scans %d", __func__, num_scans);
		return QDF_STATUS_E_INVAL;
	}

	total_len = sizeof(*res) + num_scans * scan_param_size;
	*vdev_id = fixed_param->vdev_id;

	res = qdf_mem_malloc(total_len);
	if (!res) {