Are you talking about fork or rear shock? If rear shock, there were some "problem" ones that escaped the factory.
Mine is currently in for re-build...even though it's on a new bike that hasn't seen the trail yet. Banjo fitting that ties the lockout to the shock body is leaking. Therefore the shock is never truly making it into the "locked out" position when you press the button.