]> git.baikalelectronics.ru Git - kernel.git/commit
qed/qed_mng_tlv: correctly zero out ->min instead of ->hour
authorDaniil Tatianin <d-tatianin@yandex-team.ru>
Wed, 15 Mar 2023 19:46:18 +0000 (22:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:51 +0000 (13:33 +0100)
commitc4f37f44115f7787e98b4908ec97335bcb9c1e19
tree958c7cae7924b7e47b1f0852ace3f73f0e89de55
parent0f0ca01ff4cd750c2406ed2f09c6b9b16471be0b
qed/qed_mng_tlv: correctly zero out ->min instead of ->hour

[ Upstream commit edab312f572997b109b92e49f7c3810966718112 ]

This fixes an issue where ->hour would erroneously get zeroed out
instead of ->min because of a bad copy paste.

Found by Linux Verification Center (linuxtesting.org) with the SVACE
static analysis tool.

Fixes: 9c31cbc89b33 ("qed: Add support for processing fcoe tlv request.")
Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Link: https://lore.kernel.org/r/20230315194618.579286-1-d-tatianin@yandex-team.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c