]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb66edcf0c275252c3173184ddd0a0fda8eb5acd1
tree79fd7cb88ce573822d8514c8e66d9190acd57008
parentfc2da0cb034d7e2f5bebebb57347b83447749e79
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