Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (7959): endianness fix in flexcop-usb.c

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by

Al Viro and committed by
Mauro Carvalho Chehab
b05ce2e7 3e085629

+1 -1
+1 -1
drivers/media/dvb/b2c2/flexcop-usb.c
··· 379 379 380 380 static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb) 381 381 { 382 - u16 frame_size = fc_usb->uintf->cur_altsetting->endpoint[0].desc.wMaxPacketSize; 382 + u16 frame_size = le16_to_cpu(fc_usb->uintf->cur_altsetting->endpoint[0].desc.wMaxPacketSize); 383 383 int bufsize = B2C2_USB_NUM_ISO_URB * B2C2_USB_FRAMES_PER_ISO * frame_size,i,j,ret; 384 384 int buffer_offset = 0; 385 385