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

Commit 826d77fc authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: secure_buffer: Fix the parameter passing to dmac_flush_range"

parents 05996fd8 4ce20d5e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2011 Google, Inc
 * Copyright (c) 2011-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2019, 2021 The Linux Foundation. All rights reserved.
 */

#include <linux/highmem.h>
@@ -119,7 +119,8 @@ static int secure_buffer_change_table(struct sg_table *table, int lock)
		 * secure environment to ensure the data is actually present
		 * in RAM
		 */
		dmac_flush_range(chunk_list, chunk_list + chunk_list_len);
		dmac_flush_range(chunk_list,
			(void *)chunk_list + chunk_list_len);

		ret = secure_buffer_change_chunk(chunk_list_phys,
				nchunks, V2_CHUNK_SIZE, lock);