Staging: vt6655-6: shift wrap buf in s_vFillTxKey()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 11 Oct 2012 06:54:05 +0000 (09:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 20:26:40 +0000 (13:26 -0700)
commitff4573a7afc53ccf6c66622b884d60208d04db2b
tree701d73a7311efedf5278b270ddc5ca7e7722a28f
parentf20fbdf829c11c3c29ee94c0c10ec6195ac4c362
Staging: vt6655-6: shift wrap buf in s_vFillTxKey()

byKeyIndex is an unsigned char between 0 and 0xf.  If it is any value
higher than 1, then we will hit an integer wrap issue here.

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