]> git.baikalelectronics.ru Git - kernel.git/commit
mISDN: Fix a sleep-in-atomic bug
authorJia-Ju Bai <baijiaju1990@163.com>
Wed, 31 May 2017 07:08:25 +0000 (15:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jun 2017 18:49:47 +0000 (14:49 -0400)
commit2dca3cfe3ede12dde716e2fad9cae174fd673b7f
treeffe9549d810ab6446a47219fd4ee7d0a7b1979fe
parenteb3e1aed7332dc1117ae85bc3a4ae716850ce865
mISDN: Fix a sleep-in-atomic bug

The driver may sleep under a read spin lock, and the function call path is:
send_socklist (acquire the lock by read_lock)
  skb_copy(GFP_KERNEL) --> may sleep

To fix 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>
drivers/isdn/mISDN/stack.c