Arizona Good Sam law said something like if you are UNTRAINED, in cls, emt, dr, etc and help in good faith and the vic dies, you cannot be held liable. If you are trained, and CAUSE death, you can be held liable.
Even MDs don't save EVERYBODY. Even Dr McCoy couldn't save everybody.
I don't know how it is in commiefornia.