remoteproc/mediatek: fix boundary check