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)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 21 Aug 2021 17:27:16 +0000 (20:27 +0300)
commitd0f8430332a16c7baa80ce2886339182c5d85f37
tree1cff3e2bbf037c7944a5f55f60234a8bf02879e1
parent92276c592a6b5d7e3d99b8905429dd5c2bff4ec7
rsi: fix error code in rsi_load_9116_firmware()

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
drivers/net/wireless/rsi/rsi_91x_hal.c