]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 13 Nov 2014 18:02:54 +0000 (19:02 +0100)
commitb7b72e586240ab69fc5bc30c65005bebae0f8793
treeec787a4e5958ac5f7b2a8752280c489b71684507
parent2aa227341252dc88670a9814793975f1e685e74c
USB: opticon: fix non-atomic allocation in write path

commit e681286de221af78fc85db9222b6a203148c005a upstream.

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

Fixes: 0d930e51cfe6 ("USB: opticon: Add Opticon OPN2001 write support")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/serial/opticon.c