diff options
author | Reinette Chatre <reinette.chatre@intel.com> | 2010-01-21 11:52:28 -0800 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-01-29 11:13:59 -0800 |
commit | d3a571971e5af241074947fc80f6284677f6e014 (patch) | |
tree | d01bb4af20ecfadf36626fb57f3d0918b9653d14 /drivers/net/wireless/iwlwifi/iwl-power.c | |
parent | 7ae810776a51dc4dc6580013b0f6ba0f34d2b165 (diff) |
iwlwifi: iwl_power_update_mode always hold mutex
iwl_power_update_mode expects to be called with mutex held, for example to
protect priv->vif. Only one caller currently does not do this, fix this.
Also, add a comment to iwl_power_update_mode to indicate this requirement.
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-power.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-power.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-power.c b/drivers/net/wireless/iwlwifi/iwl-power.c index 232dd1879ba..1a1a9f081cc 100644 --- a/drivers/net/wireless/iwlwifi/iwl-power.c +++ b/drivers/net/wireless/iwlwifi/iwl-power.c @@ -303,7 +303,7 @@ static int iwl_set_power(struct iwl_priv *priv, struct iwl_powertable_cmd *cmd) sizeof(struct iwl_powertable_cmd), cmd); } - +/* priv->mutex must be held */ int iwl_power_update_mode(struct iwl_priv *priv, bool force) { int ret = 0; |