]> git.baikalelectronics.ru Git - kernel.git/commit
kobject: modify kobject_get_path() to take a const *
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Oct 2022 16:53:15 +0000 (18:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:29 +0000 (09:33 +0100)
commiteccace1c10dc2bb8081e25999990054cf51514a3
tree919c575742d013f2e2853a3476ace09abee27b76
parentfef4b0bf4ce8e7f8a5eb8853ae72d081e880bae7
kobject: modify kobject_get_path() to take a const *

[ Upstream commit 1586b5f07162d1b57cd17db08bae3ac6fa7b40b4 ]

kobject_get_path() does not modify the kobject passed to it, so make the
pointer constant.

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20221001165315.2690141-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: 6bf096006cc8 ("kobject: Fix slab-out-of-bounds in fill_kobj_path()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/kobject.h
lib/kobject.c