]> git.baikalelectronics.ru Git - kernel.git/commit
USB: opticon: fix non-atomic allocation in write path
authorJohan Hovold <johan@kernel.org>
Wed, 29 Oct 2014 08:07:31 +0000 (09:07 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 3 Nov 2014 08:07:30 +0000 (09:07 +0100)
commitf90a9a352c9a55b8fb8ed9272e6bf5815fae5502
tree10200bb2cafde8e2097b2ad139eb66042c1dda63
parenta207ac74a414917d4b9d378bbf1de3f78ced95fe
USB: opticon: fix non-atomic allocation in write path

Write may be called from interrupt context so make sure to use
GFP_ATOMIC for all allocations in write.

Fixes: 9c7db65135aa ("USB: opticon: Add Opticon OPN2001 write support")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/opticon.c