diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2021-08-16 21:14:04 +0800 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2021-08-26 08:37:51 -0400 |
commit | e5b8e3b9afdabbb4830203b04b129316fbcf5715 (patch) | |
tree | fdec048f5a3758d340d25484be02e9b3933fdc2d /drivers/leds/leds-wrap.c | |
parent | d66736076bd84742c18397785476e9a84d5b54ef (diff) |
net: qlcnic: add missed unlock in qlcnic_83xx_flash_read32
[ Upstream commit 0a298d133893c72c96e2156ed7cb0f0c4a306a3e ]
qlcnic_83xx_unlock_flash() is called on all paths after we call
qlcnic_83xx_lock_flash(), except for one error path on failure
of QLCRD32(), which may cause a deadlock. This bug is suggested
by a static analysis tool, please advise.
Fixes: 81d0aeb0a4fff ("qlcnic: flash template based firmware reset recovery")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20210816131405.24024-1-dinghao.liu@zju.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/leds/leds-wrap.c')
0 files changed, 0 insertions, 0 deletions