So presumably, if the deal is allowed to proceed, the ECB will ensure that all the risk actually remains with Bankia and the Spanish government - and therefore with Spanish taxpayers - by imposing a massive discount (or haircut) on the amount of cash it would exchange for the bonds.
BBC: No magic potion for eurozone banks