Re: [PATCH] Staging: rtl8188eu fix buffer overflow

2015-03-20 Thread Dan Carpenter
On Fri, Mar 20, 2015 at 03:21:40PM +0100, Matteo Semenzato wrote: > From: Matteo Semenzato > > This patch fixes the buffer overflow caused by accessing index 4 of hwxmits. > This is a Smatch warning? It's a false positive because the code that accesses hwxmits[4] is dead code. Just delete it

[PATCH] Staging: rtl8188eu fix buffer overflow

2015-03-20 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the buffer overflow caused by accessing index 4 of hwxmits. Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b/