mirror-linux/drivers/net/wireless/intersil
Alexey Kodanev 7fe711014e wifi: orinoco: check return value of hermes_write_wordrec()
[ Upstream commit 1e346cbb09 ]

There is currently no return check for writing an authentication
type (HERMES_AUTH_SHARED_KEY or HERMES_AUTH_OPEN). It looks like
it was accidentally skipped.

This patch adds a return check similar to the other checks in
__orinoco_hw_setup_enc() for hermes_write_wordrec().

Detected using the static analysis tool - Svace.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Alexey Kodanev <aleksei.kodanev@bell-sw.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221227133306.201356-1-aleksei.kodanev@bell-sw.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:32:54 +01:00
..
hostap wifi: move from strlcpy with unused retval to strscpy 2022-09-02 11:47:22 +03:00
orinoco wifi: orinoco: check return value of hermes_write_wordrec() 2023-03-10 09:32:54 +01:00
p54 wifi: p54: Fix comment typo 2022-09-07 10:59:37 +03:00
Kconfig intersil: remove obsolete prism54 wireless driver 2021-08-06 11:55:28 +03:00
Makefile intersil: remove obsolete prism54 wireless driver 2021-08-06 11:55:28 +03:00