mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
Assigning a string to an array which is too small to include the NUL
byte at the end causes a warning on some compilers. But this function
also has some other oddities like the 'header' array which is only ever
used within sizeof().
Tidy up the function by removing the 'header' array, allow the NUL byte
to be present in git_sha_header, and calculate the length directly from
git_sha_header.
Reported-by: Will Deacon <will@kernel.org>
Closes: https://lore.kernel.org/all/20250213154237.GA11897@willie-the-truck/
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| panthor_devfreq.c | ||
| panthor_devfreq.h | ||
| panthor_device.c | ||
| panthor_device.h | ||
| panthor_drv.c | ||
| panthor_fw.c | ||
| panthor_fw.h | ||
| panthor_gem.c | ||
| panthor_gem.h | ||
| panthor_gpu.c | ||
| panthor_gpu.h | ||
| panthor_heap.c | ||
| panthor_heap.h | ||
| panthor_mmu.c | ||
| panthor_mmu.h | ||
| panthor_regs.h | ||
| panthor_sched.c | ||
| panthor_sched.h | ||