Re: [PATCH] [media] videobuf-dma-contig: NULL check for vb2_plane_cookie

2014-12-19 Thread Hans Verkuil
Hi Nikhil, On 12/11/2014 03:56 PM, Sakari Ailus wrote: > Hi Nikhil, > > On Thu, Dec 11, 2014 at 06:37:22PM +0530, Nikhil Devshatwar wrote: >> vb2_plane_cookie can return NULL if the plane no is greater than >> total no of planes or when mem_ops are absent. >> >> Add NULL check to avoid NULL point

Re: [PATCH] [media] videobuf-dma-contig: NULL check for vb2_plane_cookie

2014-12-11 Thread Sakari Ailus
Hi Nikhil, On Thu, Dec 11, 2014 at 06:37:22PM +0530, Nikhil Devshatwar wrote: > vb2_plane_cookie can return NULL if the plane no is greater than > total no of planes or when mem_ops are absent. > > Add NULL check to avoid NULL pointer crash in the kernel. > > Signed-off-by: Nikhil Devshatwar >

[PATCH] [media] videobuf-dma-contig: NULL check for vb2_plane_cookie

2014-12-11 Thread Nikhil Devshatwar
vb2_plane_cookie can return NULL if the plane no is greater than total no of planes or when mem_ops are absent. Add NULL check to avoid NULL pointer crash in the kernel. Signed-off-by: Nikhil Devshatwar --- include/media/videobuf2-dma-contig.h |5 - 1 file changed, 4 insertions(+), 1 de