R. Mahadevan is a judge of Supreme Court of India. He is a former judge of Madras High Court where he has also served as the Acting Chief Justice. From Wikipedia
The apex court found legal infirmities in the high court’s decision, ordering immediate custody to safeguard the trial.