]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 29 Aug 2021 07:12:50 +0000 (10:12 +0300)
commitbb70836596c3fa9d69464f42574f58bcb35da126
tree04aa5993fe460ca3330795f71fdb3bf78ac687df
parent5d1aed6fa85dacd218778131e2184fd116cd5d7a
ath6kl: wmi: fix an error code in ath6kl_wmi_sync_point()

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: 20ba10092094 ("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
drivers/net/wireless/ath/ath6kl/wmi.c