Tony Lindgren e74024b2ec tty: n_gsm: Debug output allocation must use GFP_ATOMIC
Dan Carpenter <dan.carpenter@oracle.com> reported the following Smatch
warning:

drivers/tty/n_gsm.c:720 gsm_data_kick()
warn: sleeping in atomic context

This is because gsm_control_message() is holding a spin lock so
gsm_hex_dump_bytes() needs to use GFP_ATOMIC instead of GFP_KERNEL.

Fixes: 925ea0fa5277 ("tty: n_gsm: Fix packet data hex dump output")
Cc: stable <stable@kernel.org>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20220523155052.57129-1-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-10 13:30:11 +02:00
..
2022-06-04 13:42:53 -07:00
2021-07-27 12:17:21 +02:00
2022-01-31 14:30:06 +01:00
2022-05-19 18:26:16 +02:00
2021-07-27 12:17:21 +02:00
2021-10-21 12:35:35 +02:00
2021-10-21 12:35:35 +02:00
2022-05-19 18:26:17 +02:00
2021-12-20 10:00:30 +01:00
2021-07-27 12:17:21 +02:00
2022-05-19 18:26:17 +02:00
2022-05-19 18:26:17 +02:00
2021-04-15 10:32:17 +02:00
2021-07-27 12:17:21 +02:00
2021-07-27 12:17:21 +02:00