From: Emmanuel Grumbach Date: Wed, 13 Jun 2012 16:37:06 +0000 (+0300) Subject: iwlwifi: check that we have enough bits to track the TX queues X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=303e56f2d2868f1bcdd3b72c3296d02a7af28962;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git iwlwifi: check that we have enough bits to track the TX queues Signed-off-by: Emmanuel Grumbach Signed-off-by: Johannes Berg --- diff --git a/drivers/net/wireless/iwlwifi/dvm/main.c b/drivers/net/wireless/iwlwifi/dvm/main.c index e620af3d592..bba3edfb348 100644 --- a/drivers/net/wireless/iwlwifi/dvm/main.c +++ b/drivers/net/wireless/iwlwifi/dvm/main.c @@ -1352,6 +1352,9 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans, trans_cfg.queue_watchdog_timeout = IWL_WATCHDOG_DISABLED; trans_cfg.command_names = iwl_dvm_cmd_strings; + WARN_ON(sizeof(priv->transport_queue_stop) * BITS_PER_BYTE < + priv->cfg->base_params->num_of_queues); + ucode_flags = fw->ucode_capa.flags; #ifndef CONFIG_IWLWIFI_P2P