commit | e8f4ae85439f34bec3b0ab69223a41809dab28c9 | [log] [tgz] |
---|---|---|
author | Jia-Ju Bai <baijiaju1990@163.com> | Wed May 31 09:40:11 2017 +0800 |
committer | David S. Miller <davem@davemloft.net> | Wed May 31 14:38:10 2017 -0400 |
tree | 06a335def58c9f7583e4ea9c45005abbdbf97e83 | |
parent | 06d2d6431bc8d41ef5ffd8bd4b52cea9f72aed22 [diff] |
isdn: Fix a sleep-in-atomic bug 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@163.com> Signed-off-by: David S. Miller <davem@davemloft.net>