We derive a general slip-corrected compressible Reynolds lubrication equation, valid for any choice of the slip velocities, and show that it possesses the exact analytical solution. It is obtained by a suitable transformation of the dependent variable, and it yields both the pressure distribution in the bearing and the mass flow rate through it. It can be usefully applied for testing the other, experimental or numerical results obtained under the same or similar physical conditions, against this solution.