Commit 8c075401 authored by Koby Elbaz's avatar Koby Elbaz Committed by Oded Gabbay
Browse files

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: default avatarKoby Elbaz <kelbaz@habana.ai>
Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent e91c37f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)