Inspired by this question, Hogwarts Professors seem to be teaching a lot of students. They (core-subject teachers) teach at least 280-300 students. They'll have to remember that many names, and it doesn't seem like any Professor forgets anybody's name.
During students' first lesson with them, a name-list is used for the teacher to identify the student.
Professor Flitwick, the Charms teacher, was a tiny little wizard who had to stand on a pile of books to see over his desk. At the start of their first class he took the roll call, and when he reached Harry's name he gave an excited squeak and toppled out of sight.
Harry Potter - The Philosopher's Stone: Chapter 8 - The Potions Master
An exception would be Umbridge, who doesn't take attendance during her first lesson:
Professor Umbridge raised her eyebrows.
'And your name is?'
'Hermione Granger,' said Hermione.
'We're not going to use magic?' Ron exclaimed loudly.
'Students raise their hands when they wish to speak in my class, Mr—?'
Harry Potter - Order of the Phoenix: Chapter 12 - Professor Umbridge
Of course, there are students who are famous -Harry, and notorious -Draco, who teachers would have no trouble remembering. But what of those that are not? Hogwarts Professors would have a lot of names to remember.
So, were there any instances where a Hogwarts Professor forgot/wrongly say a student's name?