applicom: Fix an unchecked user ioctl range and an error return