]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: hso: obey DMA rules in tiocmget
authorOliver Neukum <oneukum@suse.com>
Thu, 17 Oct 2019 13:25:47 +0000 (15:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Oct 2019 19:05:10 +0000 (15:05 -0400)
commitaf0de1303c4e8f44fadd7b4c593f09f22324b04f
tree319ceeed3041a525b3640130729f593c176c31ca
parente497c20e203680aba9ccf7bb475959595908ca7e
usb: hso: obey DMA rules in tiocmget

The serial state information must not be embedded into another
data structure, as this interferes with cache handling for DMA
on architectures without cache coherence..
That would result in data corruption on some architectures
Allocating it separately.

v2: fix syntax error

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c