summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorluoqing <luoqing@kylinos.cn>2025-02-08 04:35:39 +0300
committerAndi Shyti <andi.shyti@linux.intel.com>2025-02-11 02:26:02 +0300
commitfc2ef5b6e1ab9717b1a0b588a39b410864091fa9 (patch)
tree11fd7c4490f5ebcf5050eb989d93a51baa2933ea /rust/helpers/helpers.c
parent8d8334632ea62424233ac6529712868241d0f8df (diff)
downloadlinux-fc2ef5b6e1ab9717b1a0b588a39b410864091fa9.tar.xz
selftests: i915: Use struct_size() helper in kmalloc()
Make use of the struct_size() helper instead of an open-coded version, in order to avoid any potential type mistakes or integer overflows that, in the worst scenario, could lead to heap overflows. Signed-off-by: luoqing <luoqing@kylinos.cn> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250208013539.3586855-1-l1138897701@163.com
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions