McAfee Corp. avoided a loss Thursday in its first earnings report since returning to the public markets.