aarch64: Fix error return from __ioctl