Skip to content

Commit 545a2c7

Browse files
committed
ASoC: SDCA: use old struct hid_descriptor
JIRA: https://issues.redhat.com/browse/RHEL-118909 Upstream-status: RHEL-only This is a temporary fix - waiting for fe7f7ac ("HID: usbhid: Eliminate recurrent out-of-bounds bug in usbhid_parse()") commit. Signed-off-by: Jaroslav Kysela <jkysela@redhat.com>
1 parent 2e225f5 commit 545a2c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/sdca/sdca_hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static int sdwhid_parse(struct hid_device *hid)
2424
unsigned int rsize;
2525
int ret;
2626

27-
rsize = le16_to_cpu(entity->hide.hid_desc.rpt_desc.wDescriptorLength);
27+
rsize = le16_to_cpu(entity->hide.hid_desc.desc[0].wDescriptorLength);
2828

2929
if (!rsize || rsize > HID_MAX_DESCRIPTOR_SIZE) {
3030
dev_err(&hid->dev, "invalid size of report descriptor (%u)\n", rsize);

0 commit comments

Comments
 (0)