[Linux-stable-mirror] [PATCH 4.9 10/96] MIPS: Consistently handle buffer counter with PTRACE_SETREGSET