>From 54e0893af88ab802fa1cb4e5a826d89c16dfffbd Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Mon, 18 May 2015 23:43:46 -0500 Subject: [PATCH 1/2] staging: rtl8712: Fix two Smatch errors in rtl8712_xmit.h Smatch reports the following errors: drivers/staging/rtl8712/rtl871x_xmit.c:971 alloc_hwxmits() error: buffer overflow 'hwxmits' 4 <= 4 drivers/staging/rtl8712/rtl871x_xmit.c:972 alloc_hwxmits() error: buffer overflow 'hwxmits' 4 <= 4 Signed-off-by: Larry Finger --- drivers/staging/rtl8712/rtl8712_xmit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/rtl8712_xmit.h b/drivers/staging/rtl8712/rtl8712_xmit.h index b50e7a1..a66356d 100644 --- a/drivers/staging/rtl8712/rtl8712_xmit.h +++ b/drivers/staging/rtl8712/rtl8712_xmit.h @@ -26,7 +26,7 @@ #ifndef _RTL8712_XMIT_H_ #define _RTL8712_XMIT_H_ -#define HWXMIT_ENTRY 4 +#define HWXMIT_ENTRY 5 #define VO_QUEUE_INX 0 #define VI_QUEUE_INX 1 -- 2.1.4