staging: rtl8188eu: off by one in rtw_set_802_11_add_wep()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 Aug 2013 21:45:42 +0000 (00:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Aug 2013 18:46:47 +0000 (11:46 -0700)
commitdc427fe72bcb281a3ff07183da2d4f277f41524e
treed0a0787bac644c40efba403ef3ff52f17dab3b9c
parent15f7af8be40e7db5cd642d2ffbbe15e5d8bc1ed8
staging: rtl8188eu: off by one in rtw_set_802_11_add_wep()

"keyid" is used as an offset into the ->dot11DefKey[] array.  The array
has 4 elements.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_ioctl_set.c