]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ath9k_hw: prevent writes to const data on AR9160
authorFelix Fietkau <nbd@openwrt.org>
Wed, 15 Feb 2012 18:31:20 +0000 (19:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Mar 2012 19:31:26 +0000 (12:31 -0700)
commit06592e8c1b19bc007098e3d59ef6d8486a6c3c7d
tree76b59784ea408eafe80cd91bbba8d9c20b234fc2
parent2e4c9873deea81f89798b709622bdbdec88502db
ath9k_hw: prevent writes to const data on AR9160

commit 9bbb8168ed3d8b946f9c1901a63a675012de88f2 upstream.

Duplicate the data for iniAddac early on, to avoid having to do redundant
memcpy calls later. While we're at it, make AR5416 < v2.2 use the same
codepath. Fixes a reported crash on x86.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Reported-by: Magnus Määttä <magnus.maatta@logica.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/ath9k/ar5008_phy.c
drivers/net/wireless/ath/ath9k/ar9002_hw.c
drivers/net/wireless/ath/ath9k/hw.h