[Linux-stable-mirror] [PATCH 3.18 v2 3/5] MIPS: Consistently handle buffer counter with PTRACE_SETREGSET