|
@@ -930,6 +930,11 @@ int iwl_mvm_rx_ba_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb,
|
|
|
sta_id = ba_notif->sta_id;
|
|
|
tid = ba_notif->tid;
|
|
|
|
|
|
+ if (WARN_ONCE(sta_id >= IWL_MVM_STATION_COUNT ||
|
|
|
+ tid >= IWL_MAX_TID_COUNT,
|
|
|
+ "sta_id %d tid %d", sta_id, tid))
|
|
|
+ return 0;
|
|
|
+
|
|
|
rcu_read_lock();
|
|
|
|
|
|
sta = rcu_dereference(mvm->fw_id_to_mac_id[sta_id]);
|