diff options
-rw-r--r-- | drivers/hid/i2c-hid/i2c-hid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c index ce01d591618..6e1774c3a3f 100644 --- a/drivers/hid/i2c-hid/i2c-hid.c +++ b/drivers/hid/i2c-hid/i2c-hid.c | |||
@@ -520,7 +520,7 @@ static int i2c_hid_get_raw_report(struct hid_device *hid, | |||
520 | 520 | ||
521 | ret_count = ihid->inbuf[0] | (ihid->inbuf[1] << 8); | 521 | ret_count = ihid->inbuf[0] | (ihid->inbuf[1] << 8); |
522 | 522 | ||
523 | if (!ret_count) | 523 | if (ret_count <= 2) |
524 | return 0; | 524 | return 0; |
525 | 525 | ||
526 | ret_count = min(ret_count, ask_count); | 526 | ret_count = min(ret_count, ask_count); |