]> git.baikalelectronics.ru Git - kernel.git/commit
USB: kobil_sct: fix non-atomic allocation in write path
authorJohan Hovold <johan@kernel.org>
Wed, 29 Oct 2014 08:07:30 +0000 (09:07 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 3 Nov 2014 08:07:28 +0000 (09:07 +0100)
commita207ac74a414917d4b9d378bbf1de3f78ced95fe
tree37de857f1a7bb2685006bdc4730076b91beb6473
parent560bafeb23e4501651a67282c16c3859b44cf3df
USB: kobil_sct: 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: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/kobil_sct.c