Re: [PATCH] net: cisco: enic: Replace GFP_ATOMIC with GFP_KERNEL

From: David Miller
Date: Sat Aug 04 2018 - 16:08:39 EST


From: Jia-Ju Bai <baijiaju1990@xxxxxxxxx>
Date: Sat, 4 Aug 2018 08:40:09 +0800

> vnic_dev_register(), vnic_rq_alloc_bufs() and vnic_wq_alloc_bufs()
> are never called in atomic context.
> They call 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@xxxxxxxxx>

Applied to net-next, thanks.