Commit 9161e931 authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman

staging: most: fix USB babble on IN pipe

This patch prevents the HDM USB from submitting an URB with a buffer size
unaligned to 512 bytes to the USB subsystem.
Signed-off-by: default avatarAndrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3032ab93
...@@ -711,7 +711,7 @@ static int hdm_enqueue(struct most_interface *iface, int channel, struct mbo *mb ...@@ -711,7 +711,7 @@ static int hdm_enqueue(struct most_interface *iface, int channel, struct mbo *mb
usb_rcvbulkpipe(mdev->usb_device, usb_rcvbulkpipe(mdev->usb_device,
mdev->ep_address[channel]), mdev->ep_address[channel]),
virt_address, virt_address,
length, length + conf->extra_len,
hdm_read_completion, hdm_read_completion,
mbo); mbo);
} }
...@@ -771,6 +771,7 @@ static int hdm_configure_channel(struct most_interface *iface, int channel, ...@@ -771,6 +771,7 @@ static int hdm_configure_channel(struct most_interface *iface, int channel,
!((conf->data_type == MOST_CH_ISOC_AVP) && !((conf->data_type == MOST_CH_ISOC_AVP) &&
(conf->packets_per_xact != 0xFF))) { (conf->packets_per_xact != 0xFF))) {
mdev->padding_active[channel] = false; mdev->padding_active[channel] = false;
conf->extra_len = 0;
goto exit; goto exit;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment