staging: vt6655: check too restrictive (off by one)
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 3 Jan 2014 20:59:09 +0000 (23:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 19:02:13 +0000 (11:02 -0800)
commit1c5ebaae42793308870cb38fc81f5217ee49e691
tree83a7181f8de53e1fb7fde23a665b2f6133e35821
parent6e28024e1690bd68e7d19af3c96a1617b08c16ac
staging: vt6655: check too restrictive (off by one)

key_len == MAX_KEY_LEN is valid but we return an error.

Introduced-by: 6b7200fe0a59 ('Staging: vt6655: memory corruption in check in wpa_set_wpadev()')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/wpactl.c