]> git.baikalelectronics.ru Git - kernel.git/commit
gp8psk: fix gp8psk_usb_in_op() logic
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 12 Nov 2016 14:46:27 +0000 (12:46 -0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 13 Nov 2016 18:02:22 +0000 (10:02 -0800)
commitc8bc308666135db683038a87f98ac32e798e971b
treeccac90cf3c0b1fc6ee3fa04b0f14f94ce9975d90
parent4c52a92ac4ff0c6f54aaf900dee3e4f71a38c69b
gp8psk: fix gp8psk_usb_in_op() logic

Commit bc29131ecb10 ("[media] gp8psk: don't do DMA on stack") fixed the
usage of DMA on stack, but the memcpy was wrong for gp8psk_usb_in_op().
Fix it.

From Derek's email:
    "Fix confirmed using 2 different Skywalker models with
     HD mpeg4, SD mpeg2."

Suggested-by: Johannes Stezenbach <js@linuxtv.org>
Fixes: bc29131ecb10 ("[media] gp8psk: don't do DMA on stack")
Tested-by: Derek <user.vdr@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/media/usb/dvb-usb/gp8psk.c