I have also done the same thing in a class B airspace. My student was climbing out, and I got distracted enough that we went into the airspace by about 500 feet. I immediately cleared the airspace and filled out an ASRS form after landing just as a CYA action. I never heard anything about it.