]> 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)
commit5047ebc1c2f10de7aa50585d4622595e66d14029
tree319ceeed3041a525b3640130729f593c176c31ca
parent686eb7560d6fded7a2468b1829da072a1b2d08a9
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