Commit 75df38aa authored by Hongbo Li's avatar Hongbo Li Committed by Helge Deller
Browse files

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: default avatarHongbo Li <lihongbo22@huawei.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent da3ea350
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment