[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120831212435.GB5495@opensource.wolfsonmicro.com>
Date: Fri, 31 Aug 2012 14:24:36 -0700
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Prasad Joshi <prasadjoshi.linux@...il.com>
Cc: lrg@...com, perex@...ex.cz, tiwai@...e.de, rajeev-dlh.kumar@...com,
alsa-devel@...a-project.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ASoC: correct the check for NULL dma_buffer pointer
On Fri, Aug 31, 2012 at 08:55:21AM +0530, Prasad Joshi wrote:
> The if condition
> if (!buf && !buf->area)
>
> checks if the buf pointer is NULL and then dereferences it again to
> check if the buffer area is NULL, resulting in possible NULL
> dereference.
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists