iwlwifi: pcie: fix mutex leak in gen2 start
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Apr 2017 08:26:02 +0000 (10:26 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 20 Apr 2017 04:27:21 +0000 (07:27 +0300)
commit97b00d877bb8c2e499b9d0c07b65bd92b4e91ddd
tree59b8bd046309181b701da42092fcf98ffd95ec0c
parent9b1ea16763d37080892e4425831ca9c6298f4f5c
iwlwifi: pcie: fix mutex leak in gen2 start

If the context info fails to be allocated, the mutex
isn't unlocked properly, fix that.

Fixes: eda50cde58de ("iwlwifi: pcie: add context information support")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c