aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-trace.c
diff options
context:
space:
mode:
authorHongbo Li <[email protected]>2024-09-04 01:17:43 +0000
committerMichael S. Tsirkin <[email protected]>2024-09-25 11:07:44 +0000
commit4a21d31d7bcb4c245783119252b0389255964cd2 (patch)
tree489ce52e4d413e22debd4cb4c7b3cdd8481bc748 /drivers/usb/cdns3/cdns3-trace.c
parentvdpa/mlx5: Postpone MR deletion (diff)
downloadkernel-4a21d31d7bcb4c245783119252b0389255964cd2.tar.gz
kernel-4a21d31d7bcb4c245783119252b0389255964cd2.zip
fw_cfg: 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 this can increase over all security. ``` [Before] text data bss dec hex filename 5974 1008 96 7078 1ba6 drivers/firmware/qemu_fw_cfg.o [After] text data bss dec hex filename 6038 944 96 7078 1ba6 drivers/firmware/qemu_fw_cfg.o ``` Signed-off-by: Hongbo Li <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions