rtnetlink: Fix regression in bridge VLAN configuration
Ido Schimmel authored
[ Upstream commit d2e381c4 ]

Cited commit started returning errors when notification info is not
filled by the bridge driver, resulting in the following regression:

 # ip link add name br1 type bridge vlan_filtering 1
 # bridge vlan add dev br1 vid 555 self pvid untagged
 RTNETLINK answers: Invalid argument

As long as the bridge driver does not fill notification info for the
bridge device itself, an empty notification should not be considered as
an error. This is explained in commit 59ccaaaa ("bridge: dont send
notification when skb->len == 0 in rtnl_bridge_notify").

Fix by removing the error and add a comment to avoid future bugs.

Fixes: a8db57c1

 ("rtnetlink: Fix missing error code in rtnl_bridge_notify()")
Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
Reviewed-by: default avatarNikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
88cfd542
Name Last commit Last update
Documentation tweewide: Fix most Shebang lines
arch ARM: OMAP2+: Fix build warning when mmc_omap is not built
block blk-mq: Swap two calls in blk_mq_exit_queue()
certs certs: Fix blacklist flag type confusion
crypto crypto: api - check for ERR pointers in crypto_destroy_tfm()
drivers dmaengine: stedma40: add missing iounmap() on error in d40_probe()
firmware Fix built-in early-load Intel microcode alignment
fs gfs2: Fix use-after-free in gfs2_glock_shrink_scan
include HID: usbhid: fix info leak in hid_submit_ctrl
init pid: take a reference when initializing `cad_pid`
ipc ipc/util.c: sysvipc_find_ipc() incorrectly updates position index
kernel tracing: Correct the length check which causes memory corruption
lib lib: stackdepot: turn depot_lock spinlock to raw_spinlock
mm mm/memory-failure: make sure wait for page writeback in memory_failure
net rtnetlink: Fix regression in bridge VLAN configuration
samples samples/bpf: Fix broken tracex1 due to kprobe argument change
scripts scripts: switch explicitly to Python 3
security security: commoncap: fix -Wstringop-overread warning
sound ASoC: sti-sas: add missing MODULE_DEVICE_TABLE
tools perf session: Correct buffer copying when peeking events
usr initramfs: restore default compression behavior
virt KVM: arm64: Fix exclusive limit for IPA size
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore kbuild: rpm-pkg: keep spec file until make mrproper
.mailmap .mailmap: Add Maciej W. Rozycki's Imagination e-mail address
COPYING [PATCH] update FSF address in COPYING
CREDITS MAINTAINERS: update TPM driver infrastructure changes
Kbuild License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license
MAINTAINERS MAINTAINERS: Update drm/i915 bug filing URL
Makefile Linux 4.14.237
README README: add a new README file, pointing to the Documentation/
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

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.