diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2026-02-23 22:16:30 +0100 |
|---|---|---|
| committer | Borislav Petkov (AMD) <bp@alien8.de> | 2026-03-11 22:20:11 +0100 |
| commit | 495e77a575a1f3637cfc0cff53d889316dd00594 (patch) | |
| tree | 4b68758c15d3d1b493361d63e5c620c98710d854 /rust/kernel/ptr/git@git.tavy.me:linux.git | |
| parent | c43c3b8fb39a3cc96f0cea9ca30e3e39ec696490 (diff) | |
EDAC/device: Drop unnecessary and dangerous casts of attributes
These casts assume that the struct attribute is at the beginning of struct
edac_dev_sysfs_block_attribute. This is can silently break if the field is
moved, either manually or through struct randomization.
Use proper member syntax to get the field address and drop the casts.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260223-sysfs-const-edac-v1-3-3ff0b87249e7@weissschuh.net
Diffstat (limited to 'rust/kernel/ptr/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
