If you have your middle name on the ID you use to pass through security (driver's license or passport) you shouldn't have any problems. It's still your legal name, just part of your legal name.
Using a middle name only works especially well if your name matches one on the watch list/no-fly list, as does adding a middle initial to your ticket.