]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.9.28/iwlwifi-pcie-don-t-increment-decrement-a-bool.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 4.9.28 / iwlwifi-pcie-don-t-increment-decrement-a-bool.patch
CommitLineData
b74db2ac
GKH
1From 04fa3e680b4dd2fdd11d0152fb9b6067e7aac140 Mon Sep 17 00:00:00 2001
2From: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
3Date: Sat, 7 Jan 2017 20:11:47 +0200
4Subject: iwlwifi: pcie: don't increment / decrement a bool
5
6From: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
7
8commit 04fa3e680b4dd2fdd11d0152fb9b6067e7aac140 upstream.
9
10David reported that the code I added uses the decrement
11and increment operator on a boolean variable.
12
13Fix that.
14
15Fixes: 0cd58eaab148 ("iwlwifi: pcie: allow the op_mode to block the tx queues")
16Reported-by: David Binderman <dcb314@hotmail.com>
17Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
18Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
19Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20
21---
22 drivers/net/wireless/intel/iwlwifi/pcie/internal.h | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25--- a/drivers/net/wireless/intel/iwlwifi/pcie/internal.h
26+++ b/drivers/net/wireless/intel/iwlwifi/pcie/internal.h
27@@ -279,7 +279,7 @@ struct iwl_txq {
28 bool frozen;
29 u8 active;
30 bool ampdu;
31- bool block;
32+ int block;
33 unsigned long wd_timeout;
34 struct sk_buff_head overflow_q;
35