mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 13:22:57 +00:00
accel/habanalabs: increase HL_MAX_STR to 64 bytes to avoid warnings
[ Upstream commit 8c075401f2
]
Fix a warning of a buffer overflow:
‘snprintf’ output between 38 and 47 bytes into a destination of size 32
Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
fc04b1b9a9
commit
88d6a73fc1
1 changed files with 1 additions and 1 deletions
|
@ -2547,7 +2547,7 @@ struct hl_state_dump_specs {
|
||||||
* DEVICES
|
* DEVICES
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define HL_STR_MAX 32
|
#define HL_STR_MAX 64
|
||||||
|
|
||||||
#define HL_DEV_STS_MAX (HL_DEVICE_STATUS_LAST + 1)
|
#define HL_DEV_STS_MAX (HL_DEVICE_STATUS_LAST + 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue