The convective modes of an inhomogeneously drifting plasma in ashear magnetic field (a generalization of Suydam's problem) is considered.It is shown that a sufficiently great shear of E×B velocity drift suppresses theinstability in the case of an arbitrary `magnetic hill'. This result can beconsidered again as a Rayleigh theorem analogue.