Skip to content

Commit e908759

Browse files
committed
Fix uninitialized variable on module plug event
1 parent 89a2a5b commit e908759

File tree

1 file changed

+1
-0
lines changed
  • platform/mellanox/mlnx-platform-api/sonic_platform

1 file changed

+1
-0
lines changed

platform/mellanox/mlnx-platform-api/sonic_platform/sfp_event.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ def on_pmpe(self, fd_p):
336336
uint32_t_p_assign(port_cnt_p, 0)
337337
label_port_list = []
338338
module_state = 0
339+
error_type = pmpe_t.error_type
339340

340341
rc = sx_lib_host_ifc_recv(fd_p, pkt, pkt_size_p, recv_info_p)
341342
if rc != 0:

0 commit comments

Comments
 (0)