]> 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)
commit7a9ed4898920f98b1c1bd5a05bfb4e0315776e1d
treeccac90cf3c0b1fc6ee3fa04b0f14f94ce9975d90
parentafcd77c7a08498f764e1d6ec5530141e372f5ccb
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