From: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
To: <stable@vger.kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Nikita Zhandarovich <n.zhandarovich@fintech.ru>,
Felix Fietkau <nbd@nbd.name>,
Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>,
Ryder Lee <ryder.lee@mediatek.com>,
Kalle Valo <kvalo@codeaurora.org>,
"David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
<linux-wireless@vger.kernel.org>, <netdev@vger.kernel.org>,
<linux-mediatek@lists.infradead.org>,
<linux-kernel@vger.kernel.org>,
"Alexey Khoroshilov" <khoroshilov@ispras.ru>,
<lvc-project@linuxtesting.org>
Subject: [PATCH 5.10 1/1] mt76: fix mt7615_init_tx_queues() return value
Date: Mon, 30 Jan 2023 04:36:55 -0800 [thread overview]
Message-ID: <20230130123655.86339-2-n.zhandarovich@fintech.ru> (raw)
In-Reply-To: <20230130123655.86339-1-n.zhandarovich@fintech.ru>
mt7615_init_tx_queues() returns 0 regardless of how final
mt7615_init_tx_queue() performs. If mt7615_init_tx_queue() fails (due to
memory issues, for instance), parent function will still erroneously
return 0.
This change takes into account ret value of mt7615_init_tx_queue()
when finishing up mt7615_init_tx_queues().
Fixes: 04b8e65922f6 ("mt76: add mac80211 driver for MT7615 PCIe-based chipsets")
Signed-off-by: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
drivers/net/wireless/mediatek/mt76/mt7615/dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/dma.c b/drivers/net/wireless/mediatek/mt76/mt7615/dma.c
index bf8ae14121db..47922c1dd6e3 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7615/dma.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7615/dma.c
@@ -82,7 +82,7 @@ mt7615_init_tx_queues(struct mt7615_dev *dev)
ret = mt7615_init_tx_queue(dev, MT_TXQ_MCU, MT7615_TXQ_MCU,
MT7615_TX_MCU_RING_SIZE);
- return 0;
+ return ret;
}
static int mt7615_poll_tx(struct napi_struct *napi, int budget)
next prev parent reply other threads:[~2023-01-30 12:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-30 12:36 [PATCH 5.10 0/1] mt76: fix mt7615_init_tx_queues() return value Nikita Zhandarovich
2023-01-30 12:36 ` Nikita Zhandarovich [this message]
2023-01-30 13:05 ` [PATCH 5.10 1/1] " Greg Kroah-Hartman
2023-01-30 13:27 ` Жандарович Никита Игоревич
2023-01-30 13:37 ` Greg Kroah-Hartman
2023-01-30 13:48 ` Жандарович Никита Игоревич
2023-01-30 14:01 ` Greg Kroah-Hartman
2023-01-30 16:13 ` Жандарович Никита Игоревич
2023-01-30 16:27 ` Greg Kroah-Hartman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230130123655.86339-2-n.zhandarovich@fintech.ru \
--to=n.zhandarovich@fintech.ru \
--cc=davem@davemloft.net \
--cc=gregkh@linuxfoundation.org \
--cc=khoroshilov@ispras.ru \
--cc=kuba@kernel.org \
--cc=kvalo@codeaurora.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lorenzo.bianconi83@gmail.com \
--cc=lvc-project@linuxtesting.org \
--cc=nbd@nbd.name \
--cc=netdev@vger.kernel.org \
--cc=ryder.lee@mediatek.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox