ath6kl: wmi: fix an error code in ath6kl_wmi_sync_point()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Aug 2021 11:34:38 +0000 (14:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:50:45 +0000 (09:50 +0200)
commitcb996dc9f93785145f129c183e17bd6abb3177b3
treebc4b9044267545941d7b5c42498d35692b304a18
parentbaecab8c469f45e0b56695a2921eb908cc446052
ath6kl: wmi: fix an error code in ath6kl_wmi_sync_point()

[ Upstream commit fd6729ec534cffbbeb3917761e6d1fe6a412d3fe ]

This error path is unlikely because of it checked for NULL and
returned -ENOMEM earlier in the function.  But it should return
an error code here as well if we ever do hit it because of a
race condition or something.

Fixes: bdcd81707973 ("Add ath6kl cleaned up driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210813113438.GB30697@kili
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath6kl/wmi.c