Most people that file Chapter 7 do not lose their homes. The issue is whether you have sufficient exemptions available in your state to protect any equity in your home, and if you do not, you may want to go with a Chapter 13 instead.
I am posting a link to a description of the exemptions for all 50 states, but you ought to be consulting with a local bankruptcy attorney for more specific advice.
Hope this perspective helps!
You will not lose your home so long as the mortgage continues to be paid, and you have no more equity than the maximum allowed. You should seek the advice of an experienced, competent bankruptcy attorney.
The borrower is not filing bankruptcy. This should not be an issue.
If you lose the house, it would very likely be due to reasons other than bankruptcy.
Good luck.