OSDN Git Service

USB: serial: mos7720: fix non-atomic allocation in write path
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 11 Aug 2016 22:05:08 +0000 (01:05 +0300)
committerJohan Hovold <johan@kernel.org>
Mon, 15 Aug 2016 08:37:04 +0000 (10:37 +0200)
commit5a5a1d614287a647b36dff3f40c2b0ceabbc83ec
treec0233bc2c17ac3734bd9b4e752697796af4ad1ec
parent647024a7df36014bbc4479d92d88e6b77c0afcf6
USB: serial: mos7720: fix non-atomic allocation in write path

There is an allocation with GFP_KERNEL flag in mos7720_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/mos7720.c