Skip to content

Commit 79de834

Browse files
fastiuksaksarav-nokia
authored andcommitted
[Mellanox] Fix uninitialized variable on module plug event (sonic-net#17011)
- Why I did it To fix uninitialized variable - How I did it Add initial value Signed-off-by: Yevhen Fastiuk <[email protected]>
1 parent 00085af commit 79de834

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2019-2022 NVIDIA CORPORATION & AFFILIATES.
2+
# Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES.
33
# Apache-2.0
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -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)