Skip to content
Snippets Groups Projects
Commit cb6a8692 authored by Waiman Long's avatar Waiman Long
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: default avatarWaiman Long <longman@redhat.com>
parent 148bb58d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment