]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
staging: rtl8723bs: Fix the return value in case of error in 'rtw_wx_read32()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 17 Oct 2018 08:15:34 +0000 (10:15 +0200)
committerSultan Alsawaf <sultan.alsawaf@canonical.com>
Wed, 24 Jul 2019 15:45:07 +0000 (09:45 -0600)
commit465f4ea51cf7e8015340051a0f3bd21ce3f905f3
tree9cae5a842612db35f7aba209b0c7ce82378cb62a
parent48a61261f5f5d5ab79b1fad89d2812d787a4e4b0
staging: rtl8723bs: Fix the return value in case of error in 'rtw_wx_read32()'

BugLink: https://bugs.launchpad.net/bugs/1837161
[ Upstream commit c3e43d8b958bd6849817393483e805d8638a8ab7 ]

We return 0 unconditionally in 'rtw_wx_read32()'.
However, 'ret' is set to some error codes in several error handling paths.

Return 'ret' instead to propagate the error code.

Fixes: 554c0a3abf216 ("staging: Add rtl8723bs sdio wifi driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c