diff options
author | Koby Elbaz <kelbaz@habana.ai> | 2023-12-11 11:03:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-13 14:10:06 +0300 |
commit | 88d6a73fc19cb823a5793f069e5eb7e67766bedb (patch) | |
tree | 982160c880bbf74920ae6768d934d37feb7dab1e /drivers | |
parent | fc04b1b9a9e2e4f40e0b83b1997a8a0640158242 (diff) | |
download | linux-88d6a73fc19cb823a5793f069e5eb7e67766bedb.tar.xz |
accel/habanalabs: increase HL_MAX_STR to 64 bytes to avoid warnings
[ Upstream commit 8c075401f2dbda43600c61f780a165abde77877a ]
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/accel/habanalabs/common/habanalabs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/accel/habanalabs/common/habanalabs.h b/drivers/accel/habanalabs/common/habanalabs.h index 2a900c9941fe..41c7aac2ffcf 100644 --- a/drivers/accel/habanalabs/common/habanalabs.h +++ b/drivers/accel/habanalabs/common/habanalabs.h @@ -2547,7 +2547,7 @@ struct hl_state_dump_specs { * DEVICES */ -#define HL_STR_MAX 32 +#define HL_STR_MAX 64 #define HL_DEV_STS_MAX (HL_DEVICE_STATUS_LAST + 1) |