If a USB HID device is disconneceted, the hiddev_ioctl could try to access invalid hiddev->hid pointer. The following two patches attempt to fix race condition between disconnect and hiddev_ioctl and make hiddev_ioctl always return -ENODEV on a disconnected device. -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html