diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2025-06-23 23:09:58 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-06-30 19:13:54 +0200 |
commit | a739d3b13bff0dfa1aec679d08c7062131a2a425 (patch) | |
tree | 681633f0b3d180b9c7fba9881b3acf4af56afce7 /tools/perf/scripts/python/syscall-counts.py | |
parent | a87d8d7bcc664fc8302e2ba1cc213addaa87d689 (diff) |
staging: gpib: fix unset padding field copy back to userspace
The introduction of a padding field in the gpib_board_info_ioctl is
showing up as initialized data on the stack frame being copyied back
to userspace in function board_info_ioctl. The simplest fix is to
initialize the entire struct to zero to ensure all unassigned padding
fields are zero'd before being copied back to userspace.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Fixes: 9dde4559e939 ("staging: gpib: Add GPIB common core driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20250623220958.280424-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions