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)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:14:35 +0000 (13:14 +0000)
commit71818a40d41f829a9da9b98100e8c77be434b1f9
tree878a17dc280081926249efa47f92959a90b0a325
parente78dc8f030612eabd39b019e5ede9eccaed2897d
USB: kobil_sct: fix non-atomic allocation in write path

commit 191252837626fca0de694c18bb2aa64c118eda89 upstream

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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/usb/serial/kobil_sct.c