diff options
author | Alexander Aring <aahringo@redhat.com> | 2022-06-13 00:37:35 -0400 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2022-06-14 10:23:51 +0200 |
commit | 6c1c78d0182fcbfe953bf5a0c3e71204d176b887 (patch) | |
tree | 97a6041ccc438ea3df2c33d2e869e60ee6d6b2c5 /net/can | |
parent | 2ec2f6bed4d12a7ed74ed179a5d2879b117105d1 (diff) |
mac802154: fix atomic_dec_and_test checks
We need to call wake_up() when hold_txs reaches zero. The semantic of
atomic_dec_and_test() is that it returns true when it's zero.
Fixes: f0feb3490473 ("net: mac802154: Introduce a tx queue flushing mechanism")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20220613043735.1039895-3-aahringo@redhat.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'net/can')
0 files changed, 0 insertions, 0 deletions