]> www.infradead.org Git - users/jedix/linux-maple.git/commit
parisc: pdc_stable: Constify struct kobj_type
authorHongbo Li <lihongbo22@huawei.com>
Wed, 4 Sep 2024 01:16:42 +0000 (09:16 +0800)
committerHelge Deller <deller@gmx.de>
Mon, 9 Sep 2024 06:53:17 +0000 (08:53 +0200)
commit75df38aaf1f102af32919fad2e055153bee52e1f
tree7d6b843e4bb602af06f557bac0a419df7fef6b80
parentda3ea35007d0af457a0afc87e84fddaebc4e0b63
parisc: pdc_stable: Constify struct kobj_type

This 'struct kobj_type' is not modified. It is only used in
kobject_init_and_add() which takes a 'const struct kobj_type *ktype'
parameter.

Constifying this structure and moving it to a read-only section,
and can increase over all security.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/parisc/pdc_stable.c