]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wl1251: fix always return 0 error
authorWang Hai <wanghai38@huawei.com>
Thu, 30 Jul 2020 07:39:39 +0000 (15:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:24:06 +0000 (08:24 +0200)
commit2827ebc1bd29cdcfd2ccb9d7a3c92b8cbb947a8f
tree63e18672df7f403c7eab57111bc1104869578942
parent1fac7063714f293c22e46058f6911a880a56426b
wl1251: fix always return 0 error

[ Upstream commit 20e6421344b5bc2f97b8e2db47b6994368417904 ]

wl1251_event_ps_report() should not always return 0 because
wl1251_ps_set_mode() may fail. Change it to return 'ret'.

Fixes: f7ad1eed4d4b ("wl1251: retry power save entry")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200730073939.33704-1-wanghai38@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ti/wl1251/event.c