> > Why is neighbour->dev changed here? > > It holds reference to device and prevents its destruction. > If dst is held somewhere, we cannot destroy the device and deadlock > while unregister. BTW, can this ever happen for the loopback device itself? Is it ever unregistered? -- MST