iwlwifi: dvm: take mutex when sending SYNC BT config command
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 10 Mar 2014 13:22:03 +0000 (15:22 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 Apr 2014 15:23:21 +0000 (16:23 +0100)
commit769ddc4b6571f1b9766f2fa3d9e2c78cfc1afdeb
tree4fd0921b6c391d3106333c9fcbcd25d7f4da49b0
parent65417cd845c9e6217bcbdd7c9b91b01d57a09a9d
iwlwifi: dvm: take mutex when sending SYNC BT config command

commit 82e5a649453a3cf23516277abb84273768a1592b upstream.

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

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
[bwh: Backported to 3.2:
 - Adjust filename, context
 - mutex is priv->shrd->mutex]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/iwlwifi/iwl-agn.c