What happens to a home mortgage if the co-signer does not file bankruptcy but has credit problems?

It will have no affect on the mortgage as long as the lending terms are met by the primary borrower.