mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-19 02:54:00 +08:00
netfilter: nfnetlink: use original skbuff when committing/aborting
This allows us to access the original content of the batch from the commit and the abort paths. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
fcfa8f493f
commit
fc04733a1a
@ -333,7 +333,7 @@ replay:
|
||||
* original skb.
|
||||
*/
|
||||
if (err == -EAGAIN) {
|
||||
ss->abort(skb);
|
||||
ss->abort(oskb);
|
||||
nfnl_unlock(subsys_id);
|
||||
kfree_skb(nskb);
|
||||
goto replay;
|
||||
@ -357,9 +357,9 @@ ack:
|
||||
}
|
||||
done:
|
||||
if (success && done)
|
||||
ss->commit(skb);
|
||||
ss->commit(oskb);
|
||||
else
|
||||
ss->abort(skb);
|
||||
ss->abort(oskb);
|
||||
|
||||
nfnl_unlock(subsys_id);
|
||||
kfree_skb(nskb);
|
||||
|
Loading…
Reference in New Issue
Block a user