kobject: modify kobject_get_path() to take a const *
JIRA: https://issues.redhat.com/browse/RHEL-20927 CVE: CVE-2023-45863 Conflicts: A merge conflict in include/linux/kobject.h requiring manual merge due to the presence of a later upstream commit 44650f33 ("kobject.h remove extern from function prototypes"). commit 33a0a1e3 Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Date: Sat, 1 Oct 2022 18:53:15 +0200 kobject: modify kobject_get_path() to take a const * 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> Signed-off-by:
Waiman Long <longman@redhat.com>
Loading
Please register or sign in to comment