|
@@ -1719,9 +1719,10 @@ static int nl80211_dump_wiphy(struct sk_buff *skb, struct netlink_callback *cb)
|
|
* We can then retry with the larger buffer.
|
|
* We can then retry with the larger buffer.
|
|
*/
|
|
*/
|
|
if ((ret == -ENOBUFS || ret == -EMSGSIZE) &&
|
|
if ((ret == -ENOBUFS || ret == -EMSGSIZE) &&
|
|
- !skb->len &&
|
|
|
|
|
|
+ !skb->len && !state->split &&
|
|
cb->min_dump_alloc < 4096) {
|
|
cb->min_dump_alloc < 4096) {
|
|
cb->min_dump_alloc = 4096;
|
|
cb->min_dump_alloc = 4096;
|
|
|
|
+ state->split_start = 0;
|
|
rtnl_unlock();
|
|
rtnl_unlock();
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|