[alsa-devel] [patch] ALSA: soc-cache: dereferencing before checking

Liam Girdwood lrg at slimlogic.co.uk
Mon Feb 7 20:11:53 CET 2011

On Mon, 2011-02-07 at 22:01 +0300, Dan Carpenter wrote:
> The patch c358e640a66 "ASoC: soc-cache: Add trace event for
> snd_soc_cache_sync()" introduced a dereference of "codec->cache_ops"
> before we had checked it for NULL.
> I pulled the check forward, and then pulled everything in an indent
> level.
> Signed-off-by: Dan Carpenter <error27 at gmail.com>

Acked-by: Liam Girdwood <lrg at slimlogic.co.uk>
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.

More information about the Alsa-devel mailing list