* pull request: iwlwifi 2014-03-11
@ 2014-03-11 11:49 Emmanuel Grumbach
2014-03-11 11:53 ` [PATCH] iwlwifi: dvm: take mutex when sending SYNC BT config command Emmanuel Grumbach
2014-03-14 18:33 ` pull request: iwlwifi 2014-03-11 John W. Linville
0 siblings, 2 replies; 3+ messages in thread
From: Emmanuel Grumbach @ 2014-03-11 11:49 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 963 bytes --]
Hi John,
One more bugfix - this bug has been there forever, so it might not be all that much important. Your call.
We were sending a host command while the mutex wasn't held. This led to hard-to-catch races.
Please pull - thanks.
The following changes since commit acfcd9ed588465e48efe5ceb67177096d51c95a9:
iwlwifi: fix and add 7265 series HW IDs (2014-03-04 19:30:06 +0200)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes.git for-john
for you to fetch changes up to 82e5a649453a3cf23516277abb84273768a1592b:
iwlwifi: dvm: take mutex when sending SYNC BT config command (2014-03-11 13:15:16 +0200)
----------------------------------------------------------------
Emmanuel Grumbach (1):
iwlwifi: dvm: take mutex when sending SYNC BT config command
drivers/net/wireless/iwlwifi/dvm/main.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] iwlwifi: dvm: take mutex when sending SYNC BT config command
2014-03-11 11:49 pull request: iwlwifi 2014-03-11 Emmanuel Grumbach
@ 2014-03-11 11:53 ` Emmanuel Grumbach
2014-03-14 18:33 ` pull request: iwlwifi 2014-03-11 John W. Linville
1 sibling, 0 replies; 3+ messages in thread
From: Emmanuel Grumbach @ 2014-03-11 11:53 UTC (permalink / raw)
To: linux-wireless; +Cc: Emmanuel Grumbach, stable
From: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
There is a flow in which we send the host command in SYNC
mode, but we don't take priv->mutex.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1046495
Cc: <stable@vger.kernel.org>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
---
drivers/net/wireless/iwlwifi/dvm/main.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/iwlwifi/dvm/main.c b/drivers/net/wireless/iwlwifi/dvm/main.c
index ba1b1ea..ea7e70c 100644
--- a/drivers/net/wireless/iwlwifi/dvm/main.c
+++ b/drivers/net/wireless/iwlwifi/dvm/main.c
@@ -252,13 +252,17 @@ static void iwl_bg_bt_runtime_config(struct work_struct *work)
struct iwl_priv *priv =
container_of(work, struct iwl_priv, bt_runtime_config);
+ mutex_lock(&priv->mutex);
if (test_bit(STATUS_EXIT_PENDING, &priv->status))
- return;
+ goto out;
/* dont send host command if rf-kill is on */
if (!iwl_is_ready_rf(priv))
- return;
+ goto out;
+
iwlagn_send_advance_bt_config(priv);
+out:
+ mutex_unlock(&priv->mutex);
}
static void iwl_bg_bt_full_concurrency(struct work_struct *work)
--
1.8.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: pull request: iwlwifi 2014-03-11
2014-03-11 11:49 pull request: iwlwifi 2014-03-11 Emmanuel Grumbach
2014-03-11 11:53 ` [PATCH] iwlwifi: dvm: take mutex when sending SYNC BT config command Emmanuel Grumbach
@ 2014-03-14 18:33 ` John W. Linville
1 sibling, 0 replies; 3+ messages in thread
From: John W. Linville @ 2014-03-14 18:33 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: linux-wireless
On Tue, Mar 11, 2014 at 01:49:25PM +0200, Emmanuel Grumbach wrote:
> Hi John,
>
> One more bugfix - this bug has been there forever, so it might not be all that much important. Your call.
>
> We were sending a host command while the mutex wasn't held. This led to hard-to-catch races.
>
> Please pull - thanks.
>
>
> The following changes since commit acfcd9ed588465e48efe5ceb67177096d51c95a9:
>
> iwlwifi: fix and add 7265 series HW IDs (2014-03-04 19:30:06 +0200)
>
> are available in the git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes.git for-john
>
> for you to fetch changes up to 82e5a649453a3cf23516277abb84273768a1592b:
>
> iwlwifi: dvm: take mutex when sending SYNC BT config command (2014-03-11 13:15:16 +0200)
Pulling now (for -next)...
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-14 18:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-11 11:49 pull request: iwlwifi 2014-03-11 Emmanuel Grumbach
2014-03-11 11:53 ` [PATCH] iwlwifi: dvm: take mutex when sending SYNC BT config command Emmanuel Grumbach
2014-03-14 18:33 ` pull request: iwlwifi 2014-03-11 John W. Linville
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.