mips/kvm: fix ioctl error handling