Re: [PATCH] isdn: Fix a sleep-in-atomic bug

From: David Miller
Date: Wed May 31 2017 - 14:38:52 EST


From: Jia-Ju Bai <baijiaju1990@xxxxxxx>
Date: Wed, 31 May 2017 09:40:11 +0800

> The driver may sleep under a spin lock, the function call path is:
> isdn_ppp_mp_receive (acquire the lock)
> isdn_ppp_mp_reassembly
> isdn_ppp_push_higher
> isdn_ppp_decompress
> isdn_ppp_ccp_reset_trans
> isdn_ppp_ccp_reset_alloc_state
> kzalloc(GFP_KERNEL) --> may sleep
>
> To fixed it, the "GFP_KERNEL" is replaced with "GFP_ATOMIC".
>
> Signed-off-by: Jia-Ju Bai <baijiaju1990@xxxxxxx>

Applied.