Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f9bdbc2 authored by Stefan Ringel's avatar Stefan Ringel Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB: tm6000: bugfix incorrect size

parent 2a15ac7a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -205,7 +205,11 @@ static int copy_packet(struct urb *urb, u32 header, u8 **ptr, u8 *endp,
		c = (header >> 24) & 0xff;

		/* split the header fields */
		size  = (((header & 0x7e) << 1) -1) *4;
		size  = ((header & 0x7e) << 1);

		if (size > 0)
			size -= 4;

		block = (header >> 7) & 0xf;
		field = (header >> 11) & 0x1;
		line  = (header >> 12) & 0x1ff;