Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/06630f9ec3e153d0e7773b8d97a17e7c53e0d606.1727375615.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Georgi Djakov <djakov@kernel.org>

authored by

Christophe JAILLET and committed by
Georgi Djakov
52cebda1 326b42d8

+1 -1
+1 -1
drivers/interconnect/core.c
··· 808 808 mutex_unlock(&icc_bw_lock); 809 809 mutex_unlock(&icc_lock); 810 810 811 - kfree_const(path->name); 811 + kfree(path->name); 812 812 kfree(path); 813 813 } 814 814 EXPORT_SYMBOL_GPL(icc_put);