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

Commit 2b1c4b91 authored by Naitik Bharadiya's avatar Naitik Bharadiya
Browse files

soc: qcom: glink_debugfs: Fix compilation error with clang



use destination string size in strlcpy size argument to fix
clang compilation error.

Change-Id: Ice7fa2753d07e07c5c214ffb0792450985378643
Signed-off-by: default avatarNaitik Bharadiya <bharad@codeaurora.org>
parent aeb74a7e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2016, 2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -568,9 +568,9 @@ void glink_dfs_update_list(struct dentry *curr_dent, struct dentry *parent,
			dbgfs_dent_s->parent = parent;
			dbgfs_dent_s->self = curr_dent;
			strlcpy(dbgfs_dent_s->self_name,
				curr, strlen(curr) + 1);
				curr, sizeof(dbgfs_dent_s->self_name));
			strlcpy(dbgfs_dent_s->par_name, par_dir,
					strlen(par_dir) + 1);
					sizeof(dbgfs_dent_s->par_name));
			INIT_WORK(&dbgfs_dent_s->rm_work,
				  glink_dfs_dent_rm_worker);
			mutex_lock(&dent_list_lock_lha0);