From: Mark Brown <broonie@kernel.org>
To: Julia Lawall <Julia.Lawall@lip6.fr>,
Nicolin Chen <nicoleotsuka@gmail.com>,
Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org
Subject: Applied "ASoC: imx-pcm-dma: add NULL test" to the asoc tree
Date: Wed, 23 Dec 2015 00:08:57 +0000 [thread overview]
Message-ID: <E1aBWzB-0007Kx-Pp@debutante> (raw)
In-Reply-To: <1450610153-7746-2-git-send-email-Julia.Lawall@lip6.fr>
The patch
ASoC: imx-pcm-dma: add NULL test
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From 10974ccf04b096fd79ad90fd50276b79c069f2cc Mon Sep 17 00:00:00 2001
From: Julia Lawall <Julia.Lawall@lip6.fr>
Date: Sun, 20 Dec 2015 12:15:50 +0100
Subject: [PATCH] ASoC: imx-pcm-dma: add NULL test
Add NULL test on call to devm_kzalloc.
The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
expression x;
@@
* x = devm_kzalloc(...);
... when != x == NULL
*x
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/fsl/imx-pcm-dma.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/fsl/imx-pcm-dma.c b/sound/soc/fsl/imx-pcm-dma.c
index 1fc01ed3279d..f3d3d1ffa84e 100644
--- a/sound/soc/fsl/imx-pcm-dma.c
+++ b/sound/soc/fsl/imx-pcm-dma.c
@@ -62,6 +62,8 @@ int imx_pcm_dma_init(struct platform_device *pdev, size_t size)
config = devm_kzalloc(&pdev->dev,
sizeof(struct snd_dmaengine_pcm_config), GFP_KERNEL);
+ if (!config)
+ return -ENOMEM;
*config = imx_dmaengine_pcm_config;
if (size)
config->prealloc_buffer_size = size;
--
2.6.2
next prev parent reply other threads:[~2015-12-23 0:09 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-20 11:15 [PATCH 0/4] add NULL test Julia Lawall
2015-12-20 11:15 ` Julia Lawall
2015-12-20 11:15 ` [PATCH 1/4] ASoC: imx-pcm-dma: " Julia Lawall
2015-12-20 11:15 ` Julia Lawall
2015-12-21 7:34 ` Nicolin Chen
2015-12-21 7:34 ` Nicolin Chen
2015-12-23 0:08 ` Mark Brown [this message]
2015-12-20 11:15 ` [PATCH 2/4] ASoC: omap-hdmi-audio: " Julia Lawall
2015-12-20 11:15 ` Julia Lawall
2015-12-21 9:35 ` Peter Ujfalusi
2015-12-21 9:35 ` Peter Ujfalusi
2015-12-21 9:35 ` Peter Ujfalusi
2015-12-23 0:08 ` Applied "ASoC: omap-hdmi-audio: add NULL test" to the asoc tree Mark Brown
2015-12-20 11:15 ` [PATCH 3/4] s390/cio: add NULL test Julia Lawall
2015-12-20 11:15 ` Julia Lawall
2015-12-21 9:33 ` Heiko Carstens
2015-12-21 9:33 ` Heiko Carstens
2015-12-20 11:15 ` [PATCH 4/4] ASoC: Intel: " Julia Lawall
2015-12-20 11:15 ` Julia Lawall
2015-12-23 0:02 ` Mark Brown
2015-12-23 6:58 ` Julia Lawall
2015-12-23 6:58 ` Julia Lawall
2015-12-23 6:58 ` Julia Lawall
2015-12-23 0:08 ` Applied "ASoC: Intel: add NULL test" to the asoc tree Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1aBWzB-0007Kx-Pp@debutante \
--to=broonie@kernel.org \
--cc=Julia.Lawall@lip6.fr \
--cc=alsa-devel@alsa-project.org \
--cc=nicoleotsuka@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.