rtlwifi: rtl8192cu: Fix more pointer arithmetic errors
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 11 Nov 2013 04:11:16 +0000 (22:11 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Nov 2013 19:29:33 +0000 (14:29 -0500)
commiteafbdde9c5629bea58df07275c5917eb42afbbe7
tree8b815ebbab53445aeda81ccf6b1c88823263f4c8
parent353d2a69ea2607acd80c6bea7da2ab9bb65d2622
rtlwifi: rtl8192cu: Fix more pointer arithmetic errors

This driver uses a number of macros to get and set various fields in the
RX and TX descriptors. To work correctly, a u8 pointer to the descriptor
must be used; however, in some cases a descriptor structure pointer is used
instead. In addition, a duplicated statement is removed.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192cu/mac.c
drivers/net/wireless/rtlwifi/rtl8192cu/trx.c