To be honest, I'm not sure. I was a level-of-separation away, so I never really had to worry about it personally. I'd imagine both will end up in the lawsuit, at least partially.
FWIW, we did keep updated records on all the work that was done on the machine, for this exact reason. We also had to have records of passed diagnostics.