]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ath5k: fix memory leak when fewer than N_PD_CURVES are in use
authorEugene A. Shatokhin <dame_eugene@mail.ru>
Wed, 29 Jun 2011 03:04:51 +0000 (23:04 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:20:58 +0000 (11:20 -0400)
commit5dfe6135e56190f57aef4c40bbe1c27b62f7242d
treea284742e2702ed9b398682601eb1978dd9f2955c
parent668414492fae0b4604405f00986afa8f3258d5e1
ath5k: fix memory leak when fewer than N_PD_CURVES are in use

commit a0b8de350be458b33248e48b2174d9af8a4c4798 upstream.

We would free the proper number of curves, but in the wrong
slots, due to a missing level of indirection through
the pdgain_idx table.

It's simpler just to try to free all four slots, so do that.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/net/wireless/ath/ath5k/eeprom.c