diff options
author | Jia-Ju Bai <baijiaju1990@163.com> | 2017-05-31 09:40:11 +0800 |
---|---|---|
committer | Sasha Levin <alexander.levin@verizon.com> | 2017-09-10 16:35:48 -0400 |
commit | 3a47f373231bc6d5ea651768892d60a2fc376c6d (patch) | |
tree | 6dea94542b18cc766af07d9ce1ba5d1614383397 /drivers/net | |
parent | 5cd13b0c28445277b392c4c86106736ac5d0c941 (diff) |
isdn: Fix a sleep-in-atomic bug
[ Upstream commit e8f4ae85439f34bec3b0ab69223a41809dab28c9 ]
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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions