diff options
| author | Luka Gejak <luka.gejak@linux.dev> | 2026-03-26 18:45:59 +0100 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-03-29 14:37:50 -0700 |
| commit | 3e09b370f830d6f00336390a5f622f7202dcd7cc (patch) | |
| tree | 9f9ccdbf291cf4421c777747afea3a7b8f7943ea /tools/testing/vma/include/git@git.tavy.me:linux.git | |
| parent | 686aad8353a5a4d3358deaba08b748a6b6e6d6c2 (diff) | |
net: hsr: constify hsr_ops and prp_ops protocol operation structures
The hsr_ops and prp_ops structures are assigned to hsr->proto_ops during
device initialization and are never modified at runtime. Declaring them
as const allows the compiler to place these structures in read-only
memory, which improves security by preventing accidental or malicious
modification of the function pointers they contain.
The proto_ops field in struct hsr_priv is also updated to a const
pointer to maintain type consistency.
Signed-off-by: Luka Gejak <luka.gejak@linux.dev>
Reviewed-by: Felix Maurer <fmaurer@redhat.com>
Link: https://patch.msgid.link/20260326174600.136232-2-luka.gejak@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/vma/include/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
