A Generalized Control Revision Method for Autonomous Driving Safety