Blame SOURCES/0001-iwlegacy-Add-a-lock-assertion-in-il4965_send_rxon_as.patch
|
Kmods SIG |
3bf4e9 |
From 52a312673aff9baac0d677e0aee068d65dc30467 Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
3bf4e9 |
From: Jia-Ju Bai <baijiaju1990@gmail.com>
|
|
Kmods SIG |
3bf4e9 |
Date: Fri, 5 Oct 2018 21:55:46 +0800
|
|
Kmods SIG |
3bf4e9 |
Subject: [Backport 52a312673aff] iwlegacy: Add a lock assertion in
|
|
Kmods SIG |
3bf4e9 |
il4965_send_rxon_assoc()
|
|
Kmods SIG |
3bf4e9 |
|
|
Kmods SIG |
3bf4e9 |
The variables il->staging.filter_flags, rxon1->filter_flags and
|
|
Kmods SIG |
3bf4e9 |
rxon2->filter_flags need to be protected by the mutex lock il->mutex.
|
|
Kmods SIG |
3bf4e9 |
This patch adds a lock assertion of il->mutex to check whether
|
|
Kmods SIG |
3bf4e9 |
this lock is held.
|
|
Kmods SIG |
3bf4e9 |
|
|
Kmods SIG |
3bf4e9 |
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
|
|
Kmods SIG |
3bf4e9 |
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
|
|
Kmods SIG |
3bf4e9 |
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
|
|
Kmods SIG |
3bf4e9 |
---
|
|
Kmods SIG |
3bf4e9 |
src/4965.c | 2 ++
|
|
Kmods SIG |
3bf4e9 |
1 file changed, 2 insertions(+)
|
|
Kmods SIG |
3bf4e9 |
|
|
Kmods SIG |
3bf4e9 |
diff --git a/src/4965.c b/src/4965.c
|
|
Kmods SIG |
3bf4e9 |
index c3c638ed0ed72e8c2f6c95929afc445f5c361d84..ce4144a892173a14e24bd8cd9e660732e96a8e60 100644
|
|
Kmods SIG |
3bf4e9 |
--- a/src/4965.c
|
|
Kmods SIG |
3bf4e9 |
+++ b/src/4965.c
|
|
Kmods SIG |
3bf4e9 |
@@ -1297,6 +1297,8 @@ il4965_send_rxon_assoc(struct il_priv *il)
|
|
Kmods SIG |
3bf4e9 |
const struct il_rxon_cmd *rxon1 = &il->staging;
|
|
Kmods SIG |
3bf4e9 |
const struct il_rxon_cmd *rxon2 = &il->active;
|
|
Kmods SIG |
3bf4e9 |
|
|
Kmods SIG |
3bf4e9 |
+ lockdep_assert_held(&il->mutex);
|
|
Kmods SIG |
3bf4e9 |
+
|
|
Kmods SIG |
3bf4e9 |
if (rxon1->flags == rxon2->flags &&
|
|
Kmods SIG |
3bf4e9 |
rxon1->filter_flags == rxon2->filter_flags &&
|
|
Kmods SIG |
3bf4e9 |
rxon1->cck_basic_rates == rxon2->cck_basic_rates &&
|
|
Kmods SIG |
3bf4e9 |
--
|
|
Kmods SIG |
3bf4e9 |
2.31.1
|
|
Kmods SIG |
3bf4e9 |
|