This shouldn't ordinarily happen, since normal packets are received from a real device, but some packets can be spontaneously generated within the switch and thus have null ->dev. (Possibly that is itself a bug that we should track down; not sure.)