Make sure that the name matches exactly because the worse thing is to be denied boarding. If it is an error on the part of the airline make sure you get it corrected before you fly. If it is because of a name change, then you will need a new passport or legal proof of the name change.