]> git.baikalelectronics.ru Git - kernel.git/commit
can: ucan: fix non-atomic allocation in completion handler
authorJohan Hovold <johan@kernel.org>
Thu, 28 Nov 2019 18:26:03 +0000 (19:26 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 3 Dec 2019 10:15:08 +0000 (11:15 +0100)
commitaae3b69601ac129d8e3270ab71ff472699290f5c
treeeb2937c002fb8e738d850bf73fbc1a1cfa18afc6
parent90b903c0167c32c7844660176b48d7232d688353
can: ucan: fix non-atomic allocation in completion handler

USB completion handlers are called in atomic context and must
specifically not allocate memory using GFP_KERNEL.

Fixes: 14ccb0435120 ("can: ucan: add driver for Theobroma Systems UCAN devices")
Cc: stable <stable@vger.kernel.org> # 4.19
Cc: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
Cc: Martin Elshuber <martin.elshuber@theobroma-systems.com>
Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/ucan.c