[PATCH v11 3/5] hidclass: Improve error handling in get_device_id.