Re: [PATCH 2/4] ASoC: omap-hdmi-audio: add NULL test

2015-12-21 Thread Peter Ujfalusi
On 12/20/2015 01:15 PM, Julia Lawall wrote: > Add NULL test on call to devm_kzalloc. > > The semantic match that finds this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x; > identifier fld; > @@ > > * x = devm_kzalloc(...); > ... when != x == NULL > x->fld

[PATCH 2/4] ASoC: omap-hdmi-audio: add NULL test

2015-12-20 Thread Julia Lawall
Add NULL test on call to devm_kzalloc. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld // Signed-off-by: Julia Lawall --- sound/soc/omap/omap-hdmi-audio.c