]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: turris-mox-rwtm: Do not complete if there are no waiters
authorMarek BehĂșn <kabel@kernel.org>
Mon, 15 Jul 2024 11:59:10 +0000 (13:59 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 15 Jul 2024 14:57:33 +0000 (16:57 +0200)
commit0bafb172b111ab27251af0eb684e7bde9570ce4c
treecc854db9d998bf66bd4fa1a1fc9bd97ef172b407
parent6bad1bef26ca2b3fd6412c6e2ac943ae6f45351c
firmware: turris-mox-rwtm: Do not complete if there are no waiters

Do not complete the "command done" completion if there are no waiters.
This can happen if a wait_for_completion() timed out or was interrupted.

Fixes: 389711b37493 ("firmware: Add Turris Mox rWTM firmware driver")
Signed-off-by: Marek BehĂșn <kabel@kernel.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/firmware/turris-mox-rwtm.c