summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2022-05-23 18:50:52 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-22 14:28:08 +0200
commit3ac9a737bdd863e0fd0adc1d890c451e42a217ad (patch)
tree7056e19034ec0fdf9de001aae1df21729196eca7 /net/lapb/lapb_in.c
parent5eb643c4f3e58649208f45d11faffa744641b029 (diff)
tty: n_gsm: Debug output allocation must use GFP_ATOMIC
commit e74024b2eccbb784824a0f9feaeaaa3b47514b79 upstream. 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>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions