summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/b2c2/b2c2-usb-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/b2c2/b2c2-usb-core.c')
-rw-r--r--linux/drivers/media/dvb/b2c2/b2c2-usb-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/b2c2/b2c2-usb-core.c b/linux/drivers/media/dvb/b2c2/b2c2-usb-core.c
index eedaf7c87..5d3b7f1f3 100644
--- a/linux/drivers/media/dvb/b2c2/b2c2-usb-core.c
+++ b/linux/drivers/media/dvb/b2c2/b2c2-usb-core.c
@@ -380,7 +380,7 @@ static void b2c2_exit_usb(struct usb_b2c2_usb *b2c2)
static int b2c2_init_usb(struct usb_b2c2_usb *b2c2)
{
- u16 frame_size = b2c2->uintf->cur_altsetting->endpoint[0].desc.wMaxPacketSize;
+ u16 frame_size = le16_to_cpu(b2c2->uintf->cur_altsetting->endpoint[0].desc.wMaxPacketSize);
int bufsize = B2C2_USB_NUM_ISO_URB * B2C2_USB_FRAMES_PER_ISO * frame_size,i,j,ret;
int buffer_offset = 0;