When a deficiency judgment is permitted, the lender may obtain one only following a
judicial foreclosure, or when the security has become valueless (such as when security for a second trust deed loan is wiped out when the first trust deed lender
completes its
foreclosure).