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)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 12 Sep 2016 18:53:12 +0000 (14:53 -0400)
commita1147c771a69625aaea70924cd7128ba35a2a74c
tree6bc5e84d55c1f8b979b13dd62005799d05ee0633
parent87fe0cd807d1974f852be46f19771813bc355991
USB: serial: mos7720: fix non-atomic allocation in write path

[ Upstream commit 5a5a1d614287a647b36dff3f40c2b0ceabbc83ec ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/usb/serial/mos7720.c