Re: [PATCH v2 28/31] cpia2_usb: don't use stack for DMA

2016-10-11 Thread Kosuke Tatsukawa
@@ -557,6 +566,9 @@ static int write_packet(struct usb_device *udev, > registers, /* buffer */ = I think you also want to change the argument to usb_control_msg() from "registers" to "buf" in write_packet()

[PATCH] media: fix waitqueue_active without memory barrier in cpia2 driver

2015-10-08 Thread Kosuke Tatsukawa
ueue_active() before wake_up*(), but without preceding memory barriers, after sending a patch to fix a similar issue in drivers/tty/n_tty.c (Details about the original issue can be found here: https://lkml.org/lkml/2015/9/28/849). Signed-off-by: Kosuke Tatsukawa <ta...@ab.jp.nec.com> --- drivers/