We study dynamics of drift waves in the pair plasma of pulsar magnetosphere. It is shown that nonlinear of the drift waves with plasma particles leads to the formation of small scale structures. We show that cyclotron instability developed within these nonlinear structures can be responsible for the formation of nanoshots discovered in the radio emission of the Crab pulsar.