diff --git a/drivers/hid/hid-betopff.c b/drivers/hid/hid-betopff.c index 0790fbd3fc9a..5874dca3935f 100644 --- a/drivers/hid/hid-betopff.c +++ b/drivers/hid/hid-betopff.c @@ -64,6 +64,11 @@ static int betopff_init(struct hid_device *hid) int field_count = 0; int error; int i, j; + + if (list_empty(&hid->inputs)) { + hid_err(hdev, "no inputs found\n"); + return -ENODEV; + }