[Linux-stable-mirror] [PATCH 3.18 12/46] MIPS: Consistently handle buffer counter with PTRACE_SETREGSET