USB: serial: mos7840: fix non-atomic allocation in write path
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 11 Aug 2016 22:05:09 +0000 (01:05 +0300)
committerJohan Hovold <johan@kernel.org>
Mon, 15 Aug 2016 08:43:57 +0000 (10:43 +0200)
commit3b7c7e52efda0d4640060de747768360ba70a7c0
tree7805b01626db56539e3fc382bb93a35a52e84b47
parent5a5a1d614287a647b36dff3f40c2b0ceabbc83ec
USB: serial: mos7840: fix non-atomic allocation in write path

There is an allocation with GFP_KERNEL flag in mos7840_write(),
while it may be called from interrupt context.

Follow-up for commit 191252837626 ("USB: kobil_sct: fix non-atomic
allocation in write path")

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/mos7840.c