Skip to content

Commit 52cebda

Browse files
tititiou36Georgi Djakov
authored andcommitted
interconnect: Remove a useless kfree_const() usage
"path->name" is allocated in of_icc_get_by_index() using kasprintf(), so there is no point in using kfree_const() to free it. Switch to the more standard kfree() to free this. Signed-off-by: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/06630f9ec3e153d0e7773b8d97a17e7c53e0d606.1727375615.git.christophe.jaillet@wanadoo.fr Signed-off-by: Georgi Djakov <[email protected]>
1 parent 326b42d commit 52cebda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/interconnect/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ void icc_put(struct icc_path *path)
808808
mutex_unlock(&icc_bw_lock);
809809
mutex_unlock(&icc_lock);
810810

811-
kfree_const(path->name);
811+
kfree(path->name);
812812
kfree(path);
813813
}
814814
EXPORT_SYMBOL_GPL(icc_put);

0 commit comments

Comments
 (0)