From e90875985660475880a483d499c7316491c97fa6 Mon Sep 17 00:00:00 2001 From: Yevhen Fastiuk Date: Thu, 5 Oct 2023 17:01:44 +0300 Subject: [PATCH] Fix uninitialized variable on module plug event --- platform/mellanox/mlnx-platform-api/sonic_platform/sfp_event.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/sfp_event.py b/platform/mellanox/mlnx-platform-api/sonic_platform/sfp_event.py index c390e9a4d34..f7cb680f7b7 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/sfp_event.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/sfp_event.py @@ -336,6 +336,7 @@ def on_pmpe(self, fd_p): uint32_t_p_assign(port_cnt_p, 0) label_port_list = [] module_state = 0 + error_type = pmpe_t.error_type rc = sx_lib_host_ifc_recv(fd_p, pkt, pkt_size_p, recv_info_p) if rc != 0: