He was India captain Rohit Sharma's opening partner in the home T20 series against Afghanistan earlier this year but his place looked under threat as he struggled for runs in the IPL
Zinedine Zidane's side, who are third in the table and 13 points behind leaders Barcelona, were uninspired against local rivals Leganes.
Madrid put in the kind of lethargic performance which has plagued their season, with Marco Asensio and Raphael Varane missing good first-half chances.
Karim Benzema equalised at the start of the second half and Marcelo saw a shot tipped away as Madrid enjoyed a short period in ascendancy.
Leganes, 11th in the table, went close to winning the game but Youssef En-Nesyri had a goal correctly disallowed for offside.