summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-03-04 17:55:27 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2015-03-04 18:46:08 +0100
commit59900e0a019e7c2bdb7809a03ed5742d311b15b3 (patch)
treed128e560d9936517baaf94261444682fae727097 /crypto
parent86f1ec32318159a24de349f0a38e79b9d2b3131a (diff)
downloadtalos-op-linux-59900e0a019e7c2bdb7809a03ed5742d311b15b3.tar.gz
talos-op-linux-59900e0a019e7c2bdb7809a03ed5742d311b15b3.zip
netfilter: nf_tables: fix error handling of rule replacement
In general, if a transaction object is added to the list successfully, we can rely on the abort path to undo what we've done. This allows us to simplify the error handling of the rule replacement path in nf_tables_newrule(). This implicitly fixes an unnecessary removal of the old rule, which needs to be left in place if we fail to replace. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud