mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-07 09:09:23 +00:00
staging: rtl8723bs: Fix the return value in case of error in 'rtw_wx_read32()'
[ Upstream commitc3e43d8b95
] 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:554c0a3abf
("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>
This commit is contained in:
parent
b34888a953
commit
f55ad8d2a2
1 changed files with 1 additions and 1 deletions
|
@ -2383,7 +2383,7 @@ static int rtw_wx_read32(struct net_device *dev,
|
|||
exit:
|
||||
kfree(ptmp);
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int rtw_wx_write32(struct net_device *dev,
|
||||
|
|
Loading…
Reference in a new issue