diff options
| author | Dan Carpenter <error27@gmail.com> | 2026-05-25 10:14:42 +0300 |
|---|---|---|
| committer | Karol Wachowski <karol.wachowski@linux.intel.com> | 2026-05-26 08:04:07 +0200 |
| commit | 44e151be23deb788d9f6124de93823faf6e04e99 (patch) | |
| tree | 9980fe950679185a58aa092c8360ae06120f7413 /kernel | |
| parent | 7f87763f47a3c22fb50265a00619ef10f2394b18 (diff) | |
accel/ivpu: prevent uninitialized data bug in debugfs
The simple_write_to_buffer() will only initialize data starting from
the *pos offset so if it's non-zero then the first part of the buffer
uninitialized. Really, if *pos is non-zero then this code won't work
so just check for that at the start of the function.
Fixes: 320323d2e545 ("accel/ivpu: Add debugfs interface for setting HWS priority bands")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Link: https://patch.msgid.link/ahP24m6Mii9EDL7Q@stanley.mountain
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
