Re: [PATCH] ASoC: correct the check for NULL dma_buffer pointer

2012-08-31 Thread Mark Brown
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

Re: [PATCH] ASoC: correct the check for NULL dma_buffer pointer

2012-08-31 Thread Mark Brown
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

[PATCH] ASoC: correct the check for NULL dma_buffer pointer

2012-08-30 Thread Prasad Joshi
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. Signed-off-by: Prasad Joshi --- sound/soc/spear/spear_pcm.c |2 +- 1 files changed, 1

[PATCH] ASoC: correct the check for NULL dma_buffer pointer

2012-08-30 Thread Prasad Joshi
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. Signed-off-by: Prasad Joshi prasadjoshi.li...@gmail.com --- sound/soc/spear/spear_pcm.c |2 +- 1 files