diff options
author | 2019-11-28 19:26:03 +0100 | |
---|---|---|
committer | 2019-12-03 11:15:08 +0100 | |
commit | 870db5d1015c8bd63e93b579e857223c96249ff7 (patch) | |
tree | eb2937c002fb8e738d850bf73fbc1a1cfa18afc6 /drivers/net/can/sun4i_can.c | |
parent | can: slcan: Fix use-after-free Read in slcan_open (diff) | |
download | linux-dev-870db5d1015c8bd63e93b579e857223c96249ff7.tar.xz linux-dev-870db5d1015c8bd63e93b579e857223c96249ff7.zip |
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: 9f2d3eae88d2 ("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>
Diffstat (limited to 'drivers/net/can/sun4i_can.c')
0 files changed, 0 insertions, 0 deletions