devlink: Clear whole devlink_flash_notify struct
Leon Romanovsky authored
[ Upstream commit ed43fbac ]

The { 0 } doesn't clear all fields in the struct, but tells to the
compiler to set all fields to zero and doesn't touch any sub-fields
if they exists.

The {} is an empty initialiser that instructs to fully initialize whole
struct including sub-fields, which is error-prone for future
devlink_flash_notify extensions.

Fixes: 6700acc5

 ("devlink: collect flash notify params into a struct")
Signed-off-by: default avatarLeon Romanovsky <leonro@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
2c0b826f
Name Last commit Last update
Documentation dt-bindings: sifive-l2-cache: Fix 'select' matching
LICENSES LICENSES/deprecated: add Zlib license text
arch arm64: dts: exynos: correct GIC CPU interfaces address range on Exynos7
block blk-crypto: fix check for too-large dun_bytes
certs certs: Trigger creation of RSA module signing key if it's not an RSA key
crypto crypto: sm2 - fix a memory leak in sm2
drivers usb: gadget: udc: renesas_usb3: Fix soc_device_match() abuse
fs debugfs: Return error during {full/open}_proxy_open() on rmmod
include PM: EM: Increase energy calculation precision
init sched/core: Initialize the idle task with preemption disabled
ipc ipc/mqueue, msg, sem: avoid relying on a stack reference past its expiry
kernel cgroup/cpuset: Fix violation of cpuset locking rule
lib lib/mpi: use kcalloc in mpi_resize
mm mm/page_alloc: speed up the iteration of max_order
net devlink: Clear whole devlink_flash_notify struct
samples bpf, samples: Add missing mprog-disable to xdp_redirect_cpu's optstring
scripts scripts/tracing: fix the bug that can't parse raw_trace_func
security bpf: Add lockdown check for probe_write_user helper
sound ASoC: rt5682: Properly turn off regulators if wrong device ID
tools selftests/bpf: Fix test_core_autosize on big-endian machines
usr Merge branch 'work.fdpic' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
virt KVM: Do not leak memory for duplicate debugfs directories
.clang-format Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
.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.