Being demoted
Doing just your job and the right things are hardly enough at work. Actively advance your own interest or others advance theirs at your expense. Foremost, give priority to your boss's needs. Figure out what your boss's biggest worries are and how can contribute mitigating those concerns. Avoid the deadly mistakes of blindsiding, bypassing, or surprising your manager. Get closer to your manager as a person (he is one regardless).