Re: [PATCH] staging: rtl8712: fix boundary condition for n

2019-10-03 Thread Dan Carpenter
On Wed, Oct 02, 2019 at 10:35:19PM +0530, Rohit Sarkar wrote: > Now that snprintf is replaced by scnprintf n >= MAX_WPA_IE_LEN doesn't > make sense as the maximum value n can take is MAX_WPA_IE_LEN. > > Signed-off-by: Rohit Sarkar > --- Thanks! Reviewed-by: Dan Carpenter regards, dan carpente

[PATCH] staging: rtl8712: fix boundary condition for n

2019-10-02 Thread Rohit Sarkar
Now that snprintf is replaced by scnprintf n >= MAX_WPA_IE_LEN doesn't make sense as the maximum value n can take is MAX_WPA_IE_LEN. Signed-off-by: Rohit Sarkar --- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/stagi