OSDN Git Service

rtlwifi: rtl8192cu: Fix error in pointer arithmetic
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 8 Oct 2013 15:18:20 +0000 (10:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Nov 2013 03:05:31 +0000 (12:05 +0900)
commit3af669ca9923d504d5476bcfe04eaf4bbde03515
tree43ffb4e20f4f041c542f86f9834cf4958c936232
parent6f2c0ed7835fd30d6c137198cf1dc964f061f132
rtlwifi: rtl8192cu: Fix error in pointer arithmetic

commit 9473ca6e920a3b9ca902753ce52833657f9221cc upstream.

An error in calculating the offset in an skb causes the driver to read
essential device info from the wrong locations. The main effect is that
automatic gain calculations are nonsense.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/rtlwifi/rtl8192cu/trx.c