diff options
author | Koby Elbaz <kelbaz@habana.ai> | 2023-12-11 09:03:29 +0100 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2024-02-26 08:30:40 +0100 |
commit | 8c075401f2dbda43600c61f780a165abde77877a (patch) | |
tree | 50d726f080ebe3be076754ced6b828641da0c99d /drivers/accel | |
parent | accel/habanalabs/gaudi2: add interrupt affinity for user interrupts (diff) | |
download | linux-8c075401f2dbda43600c61f780a165abde77877a.tar.xz linux-8c075401f2dbda43600c61f780a165abde77877a.zip |
accel/habanalabs: increase HL_MAX_STR to 64 bytes to avoid warnings
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>
Diffstat (limited to 'drivers/accel')
-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 b1a7b229e161..253873315888 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) |