]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: add NULL test
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 20 Dec 2015 11:15:53 +0000 (12:15 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 23 Dec 2015 00:02:17 +0000 (00:02 +0000)
commit6c25242040bea1d11343965d04e0cbe8b71a6bea
treec5d150fd6f3f3240a33da58468dc8d2b1f02b359
parentc4d0f2aa9b4c4f329bbf2d046cdccef481fb2f4a
ASoC: Intel: 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;
identifier fld;
@@

* x = devm_kzalloc(...);
  ... when != x == NULL
  x->fld
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/baytrail/sst-baytrail-pcm.c