]> git.baikalelectronics.ru Git - kernel.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)
commit790e97cf3b85aa0d2192f1cb0451d9941912e4a4
tree319ceeed3041a525b3640130729f593c176c31ca
parent6d4bd163246e899f3631c8f0fb58eb4b2aa2a6fb
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