.. | .. |
---|
473 | 473 | * processed, this avoids that the same error is |
---|
474 | 474 | * reported several times when replaying the batch. |
---|
475 | 475 | */ |
---|
476 | | - if (nfnl_err_add(&err_list, nlh, err, &extack) < 0) { |
---|
| 476 | + if (err == -ENOMEM || |
---|
| 477 | + nfnl_err_add(&err_list, nlh, err, &extack) < 0) { |
---|
477 | 478 | /* We failed to enqueue an error, reset the |
---|
478 | 479 | * list of errors and send OOM to userspace |
---|
479 | 480 | * pointing to the batch header. |
---|
.. | .. |
---|
530 | 531 | goto replay_abort; |
---|
531 | 532 | } |
---|
532 | 533 | } |
---|
533 | | - if (ss->cleanup) |
---|
534 | | - ss->cleanup(net); |
---|
535 | 534 | |
---|
536 | 535 | nfnl_err_deliver(&err_list, oskb); |
---|
537 | 536 | kfree_skb(skb); |
---|