[PATCH 5.10 084/103] mlxsw: thermal: Fix out-of-bounds memory accesses