]> git.itanic.dy.fi Git - linux-stable/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:26:48 +0000 (12:26 +0200)
commit6ed793f14219e61a8297f8a565b2f90816decdd5
tree4e8f1f44a869df9b970fd28b1e82dbe5394b3235
parente2b92b81e0bc4f1302caf0097706a2bb934fbc91
ieee802154: cc2520: add rc code in cc2520_tx()

[ Upstream commit ffd7bdddaab193c38416fd5dd416d065517d266e ]

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