ath5k: fix memory leak when fewer than N_PD_CURVES are in use
commita0b8de350be458b33248e48b2174d9af8a4c4798
authorEugene A. Shatokhin <dame_eugene@mail.ru>
Wed, 29 Jun 2011 03:04:51 +0000 (28 23:04 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 29 Jun 2011 18:36:45 +0000 (29 14:36 -0400)
tree553527255b492f175b91bed29a36767afff63259
parentc31eb8e926835582cd186b33a7a864880a4c0c79
ath5k: fix memory leak when fewer than N_PD_CURVES are in use

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.

Cc: stable@kernel.org
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/eeprom.c