SFO flight makes emergency landing