devinet: fix memleak in inetdev_init()
Yang Yingliang authored
[ Upstream commit 1b49cd71 ]

When devinet_sysctl_register() failed, the memory allocated
in neigh_parms_alloc() should be freed.

Fixes: 20e61da7

 ("ipv4: fail early when creating netdev named all or default")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Acked-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
449c7232
Name Last commit Last update
Documentation USB: hub: Revert commit bd0e6c96 ("usb: hub: try old enumeration scheme first for high speed devices")
LICENSES LICENSES: Rename other to deprecated
arch s390/mm: fix set_huge_pte_at() for empty ptes
block Revert "block: end bio with BLK_STS_AGAIN in case of non-mq devs and REQ_NOWAIT"
certs PKCS#7: Refactor verify_pkcs7_signature()
crypto gcc-10: avoid shadowing standard library 'free()' in crypto
drivers net: smsc911x: Fix runtime PM imbalance on error
fs io_uring: initialize ctx->sqo_wait earlier
include powerpc/xmon: Restrict when kernel is locked down
init x86: Fix early boot crash on gcc-10, third try
ipc ipc/util.c: sysvipc_find_ipc() incorrectly updates position index
kernel kernel/relay.c: handle alloc_percpu returning NULL in relay_open
lib vsprintf: don't obfuscate NULL and error pointers
mm mm: Fix mremap not considering huge pmd devmap
net devinet: fix memleak in inetdev_init()
samples samples: bpf: Fix build error
scripts kbuild: Remove debug info from kallsyms linking
security evm: Fix RCU list related warnings
sound ASoC: intel - fix the card names
tools selftests: mlxsw: qos_mc_aware: Specify arping timeout as an integer
usr initramfs: restore default compression behavior
virt KVM: arm: vgic: Synchronize the whole guest on GIC{D,R}_I{S,C}ACTIVER read
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.