]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: cc2520: add rc code in cc2520_tx()
authorLi Qiong <liqiong@nfschina.com>
Mon, 29 Aug 2022 07:12:59 +0000 (15:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2022 10:27:59 +0000 (12:27 +0200)
commit48c3dbfc6a0987746da90338f0ae1eea3b2f5bec
tree96a0b2406c4623f39f48d345ce51f6dbf04794d8
parentf626e078b2e58a27c17078c542d232c8386f5e7d
ieee802154: cc2520: add rc code in cc2520_tx()

[ Upstream commit d80cf352eacd75841a533505e8bf5a2cd57cdfd9 ]

The rc code is 0 at the error path "status & CC2520_STATUS_TX_UNDERFLOW".
Assign rc code with '-EINVAL' at this error path to fix it.

Signed-off-by: Li Qiong <liqiong@nfschina.com>
Link: https://lore.kernel.org/r/20220829071259.18330-1-liqiong@nfschina.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ieee802154/cc2520.c