qcacld-3.0: Use of uninitialized variable
Driver use uninitialized unsafe channel array in the function "wlansap_select_chan_with_best_bandwidth" So, to fix this, initialize the unsafe channel array with zero value. Change-Id: If63226da00187086f27e716424b29e30137a46b1 CRs-Fixed: 3772902
Dieser Commit ist enthalten in:

committet von
Ravindra Konda

Ursprung
0691e75be1
Commit
bd81ab26f1
@@ -3347,7 +3347,7 @@ wlansap_select_chan_with_best_bandwidth(struct sap_context *sap_ctx,
|
||||
enum phy_ch_width ch_width;
|
||||
uint32_t center_freq, bw_val, bw_start, bw_end;
|
||||
uint16_t i, j;
|
||||
uint16_t unsafe_chan[NUM_CHANNELS];
|
||||
uint16_t unsafe_chan[NUM_CHANNELS] = {0};
|
||||
uint16_t unsafe_chan_cnt = 0;
|
||||
qdf_device_t qdf_ctx = cds_get_context(QDF_MODULE_ID_QDF_DEVICE);
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren