Re: Fix gus_pcm dereference before NULL

From: Randy.Dunlap
Date: Thu Mar 16 2006 - 00:27:13 EST


On Thu, 16 Mar 2006 10:00:07 +0800 Eugene Teo wrote:

> substream is dereferenced before checking for NULL.
>
> Coverity bug #861
>
> Signed-off-by: Eugene Teo <eugene.teo@xxxxxxxxxxxxx>
>
> --- linux-2.6/sound/isa/gus/gus_pcm.c~ 2006-03-15 10:05:45.000000000 +0800
> +++ linux-2.6/sound/isa/gus/gus_pcm.c 2006-03-16 09:51:43.000000000 +0800
> @@ -103,8 +103,8 @@

BTW, please use "-p" diff option so that the "@@" sections
include function or struct names etc. I.e., be nice to patch
readers/reviewers. :)

---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/