[PATCH openEuler-5.10 083/100] platform/mellanox: mlxreg-io: Fix read access of n-bytes size attributes