Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254666
b: refs/heads/master
c: a0b8de3
h: refs/heads/master
v: v3
  • Loading branch information
Eugene A. Shatokhin authored and John W. Linville committed Jun 29, 2011
1 parent 9816412 commit ad96a51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c31eb8e926835582cd186b33a7a864880a4c0c79
refs/heads/master: a0b8de350be458b33248e48b2174d9af8a4c4798
8 changes: 3 additions & 5 deletions trunk/drivers/net/wireless/ath/ath5k/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,14 +691,12 @@ ath5k_eeprom_free_pcal_info(struct ath5k_hw *ah, int mode)
if (!chinfo[pier].pd_curves)
continue;

for (pdg = 0; pdg < ee->ee_pd_gains[mode]; pdg++) {
for (pdg = 0; pdg < AR5K_EEPROM_N_PD_CURVES; pdg++) {
struct ath5k_pdgain_info *pd =
&chinfo[pier].pd_curves[pdg];

if (pd != NULL) {
kfree(pd->pd_step);
kfree(pd->pd_pwr);
}
kfree(pd->pd_step);
kfree(pd->pd_pwr);
}

kfree(chinfo[pier].pd_curves);
Expand Down

0 comments on commit ad96a51

Please sign in to comment.