Most likely, you won’t require a primer. You can go right to the paint if the existing wall is smooth, clean, and painted with the same material (for instance, both are oil-based). You must patch holes, apply spackle and sand*, and perhaps even cut a new section of drywall into the old wall.
Question
What are the steps to repainting a wall?