From: Emmanuel Grumbach Date: Thu, 7 Jun 2012 11:23:06 +0000 (+0300) Subject: iwlwifi: comment that setting driver_data overrides info->control X-Git-Tag: v3.6-rc1~125^2~57^2~325 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11741739391c2f03bbaba5349f868618fe63922f;p=platform%2Fkernel%2Flinux-3.10.git iwlwifi: comment that setting driver_data overrides info->control Using the driver_data area in ieee80211_tx_info which resides in the CB overrides the info->control field. Add a comment to prevent mistakes. Signed-off-by: Emmanuel Grumbach Signed-off-by: Johannes Berg --- diff --git a/drivers/net/wireless/iwlwifi/dvm/tx.c b/drivers/net/wireless/iwlwifi/dvm/tx.c index 0dfaf64..1f9457f 100644 --- a/drivers/net/wireless/iwlwifi/dvm/tx.c +++ b/drivers/net/wireless/iwlwifi/dvm/tx.c @@ -403,6 +403,7 @@ int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb) info->driver_data[0] = ctx; info->driver_data[1] = dev_cmd; + /* From now on, we cannot access info->control */ spin_lock(&priv->sta_lock);