[IPV6]: Fix unnecessary GFP_ATOMIC allocation in fib6 dump
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a2d7222f0f
commit
8225ccbaf0
@@ -1732,7 +1732,7 @@ int inet6_dump_fib(struct sk_buff *skb, struct netlink_callback *cb)
|
|||||||
/*
|
/*
|
||||||
* 2. allocate and initialize walker.
|
* 2. allocate and initialize walker.
|
||||||
*/
|
*/
|
||||||
w = kmalloc(sizeof(*w), GFP_ATOMIC);
|
w = kmalloc(sizeof(*w), GFP_KERNEL);
|
||||||
if (w == NULL)
|
if (w == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
RT6_TRACE("dump<%p", w);
|
RT6_TRACE("dump<%p", w);
|
||||||
|
Reference in New Issue
Block a user