OSDN Git Service

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)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Mar 2023 04:08:36 +0000 (21:08 -0700)
commit470efd68a4653d9819d391489886432cd31bcd0b
tree1e1144d7be45348e98c04f0d2f9b269f7a69aa03
parent24994513ad13ff2c47ba91d2b5df82c3d496c370
qed/qed_mng_tlv: correctly zero out ->min instead of ->hour

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: f240b6882211 ("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>
drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c