OSDN Git Service

isdn: hisax: config: Replace GFP_ATOMIC with GFP_KERNEL
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 27 Jul 2018 02:48:28 +0000 (10:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jul 2018 04:23:47 +0000 (21:23 -0700)
commit055d624facda577d3168951a1d6e2519e4fc30f7
tree79fd7cb88ce573822d8514c8e66d9190acd57008
parent87935aa776caae9c8346797271d19fa710b65a6a
isdn: hisax: config: Replace GFP_ATOMIC with GFP_KERNEL

hisax_cs_new() and hisax_cs_setup() are never called in atomic context.
They call kmalloc() and kzalloc() with GFP_ATOMIC, which is not necessary.
GFP_ATOMIC can be replaced with GFP_KERNEL.

This is found by a static analysis tool named DCNS written by myself.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hisax/config.c