Commit d8320dd0 authored by Saurav Girepunje's avatar Saurav Girepunje Committed by Dong Chenchen
Browse files

b43: dma: Fix use true/false for bool type variable

mainline inclusion
from mainline-v5.5-rc1
commit a9160bb3
category: bugfix
bugzilla: 189835, https://gitee.com/src-openeuler/kernel/issues/I9HK94
CVE: CVE-2023-52644

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a9160bb35ad9ada8428a4d48426f7fc128db40cc



--------------------------------

use true/false for bool type variables assignment.

Signed-off-by: default avatarSaurav Girepunje <saurav.girepunje@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Signed-off-by: default avatarDong Chenchen <dongchenchen2@huawei.com>
parent 9ff44822
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1462,7 +1462,7 @@ int b43_dma_tx(struct b43_wldev *dev, struct sk_buff *skb)
		/* This TX ring is full. */
		unsigned int skb_mapping = skb_get_queue_mapping(skb);
		ieee80211_stop_queue(dev->wl->hw, skb_mapping);
		dev->wl->tx_queue_stopped[skb_mapping] = 1;
		dev->wl->tx_queue_stopped[skb_mapping] = true;
		ring->stopped = true;
		if (b43_debug(dev, B43_DBG_DMAVERBOSE)) {
			b43dbg(dev->wl, "Stopped TX ring %d\n", ring->index);
@@ -1628,7 +1628,7 @@ void b43_dma_handle_txstatus(struct b43_wldev *dev,
	}

	if (dev->wl->tx_queue_stopped[ring->queue_prio]) {
		dev->wl->tx_queue_stopped[ring->queue_prio] = 0;
		dev->wl->tx_queue_stopped[ring->queue_prio] = false;
	} else {
		/* If the driver queue is running wake the corresponding
		 * mac80211 queue. */