diff options
author | 2025-04-09 09:46:33 +0800 | |
---|---|---|
committer | 2025-05-02 09:34:22 -0400 | |
commit | b662b162c3d06f120749eea0351ec9317d9dd905 (patch) | |
tree | 50a54106920e415e4e29a851a4a35cd9e9b84721 /scripts/lib/kdoc/kdoc_files.py | |
parent | accel/ivpu: Correct mutex unlock order in job submission (diff) | |
download | linux-rng-b662b162c3d06f120749eea0351ec9317d9dd905.tar.xz linux-rng-b662b162c3d06f120749eea0351ec9317d9dd905.zip |
drm: Fix potential overflow issue in event_string array
When calling scnprintf() to append recovery method to event_string,
the second argument should be `sizeof(event_string) - len`, otherwise
there is a potential overflow problem.
Fixes: b7cf9f4ac1b8 ("drm: Introduce device wedged event")
Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Reviewed-by: Raag Jadav <raag.jadav@intel.com>
Link: https://lore.kernel.org/r/20250409014633.31303-1-jiangfeng@kylinos.cn
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions