Revision 7eaf837a4eb5f74561e2486972e7f5184b613f6e authored by Quan Tian on 06 March 2024, 17:24:02 UTC, committed by Pablo Neira Ayuso on 21 March 2024, 11:12:06 UTC
If nft_netdev_register_hooks() fails, the memory associated with nft_stats is not freed, causing a memory leak. This patch fixes it by moving nft_stats_alloc() down after nft_netdev_register_hooks() succeeds. Fixes: b9703ed44ffb ("netfilter: nf_tables: support for adding new devices to an existing netdev chain") Signed-off-by: Quan Tian <tianquan23@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent 4a0e7f2
File | Mode | Size |
---|---|---|
1.Intro.rst | -rw-r--r-- | 14.3 KB |
2.Process.rst | -rw-r--r-- | 23.5 KB |
3.Early-stage.rst | -rw-r--r-- | 10.8 KB |
4.Coding.rst | -rw-r--r-- | 21.4 KB |
5.Posting.rst | -rw-r--r-- | 17.4 KB |
6.Followthrough.rst | -rw-r--r-- | 12.2 KB |
7.AdvancedTopics.rst | -rw-r--r-- | 10.4 KB |
8.Conclusion.rst | -rw-r--r-- | 3.0 KB |
adding-syscalls.rst | -rw-r--r-- | 26.6 KB |
applying-patches.rst | -rw-r--r-- | 17.4 KB |
backporting.rst | -rw-r--r-- | 25.2 KB |
botching-up-ioctls.rst | -rw-r--r-- | 11.3 KB |
changes.rst | -rw-r--r-- | 15.0 KB |
clang-format.rst | -rw-r--r-- | 6.4 KB |
code-of-conduct-interpretation.rst | -rw-r--r-- | 7.3 KB |
code-of-conduct.rst | -rw-r--r-- | 3.2 KB |
coding-style.rst | -rw-r--r-- | 44.0 KB |
contribution-maturity-model.rst | -rw-r--r-- | 4.4 KB |
cve.rst | -rw-r--r-- | 5.9 KB |
deprecated.rst | -rw-r--r-- | 16.2 KB |
development-process.rst | -rw-r--r-- | 821 bytes |
email-clients.rst | -rw-r--r-- | 12.8 KB |
embargoed-hardware-issues.rst | -rw-r--r-- | 13.6 KB |
handling-regressions.rst | -rw-r--r-- | 36.4 KB |
howto.rst | -rw-r--r-- | 26.9 KB |
index.rst | -rw-r--r-- | 2.7 KB |
kernel-docs.rst | -rw-r--r-- | 7.4 KB |
kernel-driver-statement.rst | -rw-r--r-- | 4.1 KB |
kernel-enforcement-statement.rst | -rw-r--r-- | 4.9 KB |
license-rules.rst | -rw-r--r-- | 17.6 KB |
magic-number.rst | -rw-r--r-- | 3.5 KB |
maintainer-handbooks.rst | -rw-r--r-- | 561 bytes |
maintainer-kvm-x86.rst | -rw-r--r-- | 18.5 KB |
maintainer-netdev.rst | -rw-r--r-- | 19.1 KB |
maintainer-pgp-guide.rst | -rw-r--r-- | 35.0 KB |
maintainer-soc-clean-dts.rst | -rw-r--r-- | 977 bytes |
maintainer-soc.rst | -rw-r--r-- | 8.1 KB |
maintainer-tip.rst | -rw-r--r-- | 26.4 KB |
maintainers.rst | -rw-r--r-- | 25 bytes |
management-style.rst | -rw-r--r-- | 13.1 KB |
programming-language.rst | -rw-r--r-- | 2.6 KB |
researcher-guidelines.rst | -rw-r--r-- | 8.1 KB |
security-bugs.rst | -rw-r--r-- | 5.0 KB |
stable-api-nonsense.rst | -rw-r--r-- | 9.2 KB |
stable-kernel-rules.rst | -rw-r--r-- | 8.9 KB |
submit-checklist.rst | -rw-r--r-- | 5.0 KB |
submitting-patches.rst | -rw-r--r-- | 38.2 KB |
volatile-considered-harmful.rst | -rw-r--r-- | 5.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...