Linux kernel source tree
Go to file
Peter Ujfalusi ef51cd1eba
ASoC: SOF: ipc4-topology: Initialize in_format to NULL in sof_ipc4_get_audio_fmt
If the available_fmt->num_input_formats is 0 and there is a failure during
the output format parsing then a kfree() would be called on the
uninitialized in_format pointer.

By initializing the in_format to NULL, this error can be avoided.

Fixes: 7ab6b1e830 ("ASoC: SOF: ipc4-topology: Modify the type of available input/output formats")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20230317063524.8280-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-17 13:06:04 +00:00
Documentation ASoC: dt-bindings: maxim,max9759: Convert to DT schema. 2023-03-16 11:51:12 +00:00
LICENSES
arch Linux 6.3-rc2 2023-03-13 13:20:33 +00:00
block
certs
crypto
drivers soc: fsl: cpm1: qmc: Fix test dependency 2023-03-14 13:58:58 +00:00
fs Fixes for 6.3-rc1: 2023-03-12 09:47:08 -07:00
include ASoC: soc-pcm.c: remove indirect runtime copy 2023-03-14 13:58:57 +00:00
init
io_uring
ipc
kernel kernel.fork.v6.3-rc2 2023-03-12 09:04:28 -07:00
lib
mm
net wifi: cfg80211: Partial revert "wifi: cfg80211: Fix use after free for wext" 2023-03-12 16:21:59 -07:00
rust
samples
scripts
security
sound ASoC: SOF: ipc4-topology: Initialize in_format to NULL in sof_ipc4_get_audio_fmt 2023-03-17 13:06:04 +00:00
tools kernel.fork.v6.3-rc2 2023-03-12 09:04:28 -07:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS Linux 6.3-rc2 2023-03-13 13:20:33 +00:00
Makefile Linux 6.3-rc2 2023-03-12 16:36:44 -07:00
README

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.