Fix MRPC buffer overflow issue
Fix MRPC buffer overflow issue

When the count number of MRPC command pmon_bw_get is (MRPC_MAX_DATA_LEN /
sizeof(*res)), the MRPC buffer overflow would happen. To fix this issue,
we check the command count with cmd_max_count variable.

Signed-off-by: Joey Zhang <b92d0d452d9e48b18b23439182c2b522ebdc4fc9@microchip.com>

Microsemi/switchtec-user,Microsemi/switchtec-user