Re: [PATCH] [media] saa7146: check return value of saa7146_format_by_fourcc() to avoid NULL pointer

2014-01-10 Thread Hans Verkuil
Hi Ethan, On 01/06/2014 01:41 PM, Ethan Zhao wrote: > Function saa7146_format_by_fourcc() may return NULL, reference of the returned > result would cause NULL pointer issue without checking. > > Signed-off-by: Ethan Zhao > --- > drivers/media/common/saa7146/saa7146_hlp.c | 22 ++

Re: [PATCH] [media] saa7146: check return value of saa7146_format_by_fourcc() to avoid NULL pointer

2014-01-10 Thread Hans Verkuil
Ethan, FYI: please post such media patches to the linux-media mailinglist in the future. That way they will be picked up by patchwork and it makes handling them a lot easier. I'm CC-ing that mailinglist in this reply so everyone can take a look at this patch. Regards, Hans On 01/06/