提交 f609607c 编写于 作者: D Dan Carpenter 提交者: Johannes Berg

iwlwifi: turn on a lockdep assertion

CMD_SYNC is zero so the if (cmd->flags & CMD_SYNC) is never true and we
never check the assertion.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 12af0468
...@@ -1265,7 +1265,7 @@ int iwl_dvm_send_cmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) ...@@ -1265,7 +1265,7 @@ int iwl_dvm_send_cmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd)
* the mutex, this ensures we don't try to send two * the mutex, this ensures we don't try to send two
* (or more) synchronous commands at a time. * (or more) synchronous commands at a time.
*/ */
if (cmd->flags & CMD_SYNC) if (!(cmd->flags & CMD_ASYNC))
lockdep_assert_held(&priv->mutex); lockdep_assert_held(&priv->mutex);
if (priv->ucode_owner == IWL_OWNERSHIP_TM && if (priv->ucode_owner == IWL_OWNERSHIP_TM &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册