]> asedeno.scripts.mit.edu Git - linux.git/commit
net: tipc: bcast: Replace GFP_ATOMIC with GFP_KERNEL in tipc_bcast_init()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 27 Jul 2018 09:31:35 +0000 (17:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jul 2018 20:45:15 +0000 (13:45 -0700)
commita0732548ba03c27fb42da4cf8e1eecc205760f12
tree3e97b50b21cbf0b1fac00207f9186259a797beab
parent04b9ce48ef19e09d8c65eb506b7982e99db212d7
net: tipc: bcast: Replace GFP_ATOMIC with GFP_KERNEL in tipc_bcast_init()

tipc_bcast_init() is never called in atomic context.
It calls 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>
net/tipc/bcast.c