Skip to content

Commit

Permalink
Merge branch android-msm-sunfish-4.14-android13-qpr1 (android-13.0.0_…
Browse files Browse the repository at this point in the history
…r0.51)

JAN 2023.1

Signed-off-by: engstk <[email protected]>
  • Loading branch information
engstk committed Jan 9, 2023
1 parent 570c6d2 commit 0d9a232
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/hid/hid-steam.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ static int steam_recv_report(struct steam_device *steam,
int ret;

r = steam->hdev->report_enum[HID_FEATURE_REPORT].report_id_hash[0];
if (!r) {
hid_err(steam->hdev, "No HID_FEATURE_REPORT submitted - nothing to read\n");
return -EINVAL;
}

if (hid_report_len(r) < 64)
return -EINVAL;

Expand Down Expand Up @@ -165,6 +170,11 @@ static int steam_send_report(struct steam_device *steam,
int ret;

r = steam->hdev->report_enum[HID_FEATURE_REPORT].report_id_hash[0];
if (!r) {
hid_err(steam->hdev, "No HID_FEATURE_REPORT submitted - nothing to read\n");
return -EINVAL;
}

if (hid_report_len(r) < 64)
return -EINVAL;

Expand Down

0 comments on commit 0d9a232

Please sign in to comment.