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

Dimitris Papastamos dp at opensource.wolfsonmicro.com
Tue Feb 8 11:45:24 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>

Dah, thanks for catching this.

Dimitris



More information about the Alsa-devel mailing list