Jelajahi Sumber

[IPV6]: Fib dump really needs GFP_ATOMIC.

Revert: 8225ccbaf01b459cf1e462047a51b2851e756bc1

Based upon a report by Yan Zheng.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 19 tahun lalu
induk
melakukan
9e147a1cfc
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      net/ipv6/route.c

+ 1 - 1
net/ipv6/route.c

@@ -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_KERNEL);
+		w = kmalloc(sizeof(*w), GFP_ATOMIC);
 		if (w == NULL)
 		if (w == NULL)
 			return -ENOMEM;
 			return -ENOMEM;
 		RT6_TRACE("dump<%p", w);
 		RT6_TRACE("dump<%p", w);