Waqf of mortgaged property

Impermissibility of dedicating a mortgaged item as Waqf before settling its mortgage