rsi: fix error code in rsi_load_9116_firmware()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 Aug 2021 10:37:46 +0000 (13:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:50:42 +0000 (09:50 +0200)
commit110ce7d256a34489e340bfa27f12cda94ab1f751
tree4352725a15ae47e11fd2ba4d5afeec96df545fd5
parentb4bbb77d886b4d3b5915593a9d97a0d3da82ff8d
rsi: fix error code in rsi_load_9116_firmware()

[ Upstream commit d0f8430332a16c7baa80ce2886339182c5d85f37 ]

This code returns success if the kmemdup() fails, but obviously it
should return -ENOMEM instead.

Fixes: e5a1ecc97e5f ("rsi: add firmware loading for 9116 device")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210805103746.GA26417@kili
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/rsi/rsi_91x_hal.c