]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 13 Nov 2014 18:02:55 +0000 (19:02 +0100)
commitb67eae0838424db8b4bb2f49024922df6792d0bb
tree776cba0e8b225bcba997fa8e91d2148f6ba9501d
parentbfdb4179ec3f9339062196ce922431ff27a2d99d
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")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/serial/kobil_sct.c