Changeset 27432


Ignore:
Timestamp:
2011-07-04T05:02:52+02:00 (7 years ago)
Author:
nbd
Message:

ath5k: add an upstream patch to fix a memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/patches/300-pending_work.patch

    r27339 r27432  
    462462  
    463463 #endif  /* AR9003_PHY_H */ 
     464--- a/drivers/net/wireless/ath/ath5k/eeprom.c 
     465+++ b/drivers/net/wireless/ath/ath5k/eeprom.c 
     466@@ -691,14 +691,12 @@ ath5k_eeprom_free_pcal_info(struct ath5k 
     467                if (!chinfo[pier].pd_curves) 
     468                        continue; 
     469  
     470-               for (pdg = 0; pdg < ee->ee_pd_gains[mode]; pdg++) { 
     471+               for (pdg = 0; pdg < AR5K_EEPROM_N_PD_CURVES; pdg++) { 
     472                        struct ath5k_pdgain_info *pd = 
     473                                        &chinfo[pier].pd_curves[pdg]; 
     474  
     475-                       if (pd != NULL) { 
     476-                               kfree(pd->pd_step); 
     477-                               kfree(pd->pd_pwr); 
     478-                       } 
     479+                       kfree(pd->pd_step); 
     480+                       kfree(pd->pd_pwr); 
     481                } 
     482  
     483                kfree(chinfo[pier].pd_curves); 
Note: See TracChangeset for help on using the changeset viewer.