[PATCH] Prevent null pointer derefernce of pdev

2011-05-09 Thread Huzaifa Sidhpurwala
Make sure pdev is not dereferenced when it is null Signed-off-by: Huzaifa Sidhpurwala --- drivers/media/video/pwc/pwc-if.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c index 780af5f..356cd42 100644

Re: [PATCH] libv4l1: Move VIDIOCGFBUF into libv4l1

2010-06-01 Thread Huzaifa Sidhpurwala
he first if has a { at the end of the line, and the second does not, > and the else starts with a }. > Cool , i wonder why checkpatch.pl did not catch it :) > Regards, > > Hans > > > On 05/31/2010 10:03 AM, huzai...@redhat.com wrote: >> From: Huzaifa Sidhpurwala

Re: [Patch] Moving v4l1 ioctls from kernel to libv4l1

2010-05-19 Thread Huzaifa Sidhpurwala
} case VIDIOCSPICT: { Hans de Goede wrote: > Hi Huzaifa, > > First of all many thanks for working on this! > > Comments inline. > > On 05/18/2010 01:12 PM, Huzaifa Sidhpurwala wrote: >> Hi All, >> I have been working with Hans for moving the

[Patch] Moving v4l1 ioctls from kernel to libv4l1

2010-05-18 Thread Huzaifa Sidhpurwala
ht = devices[index].min_height; cap->maxwidth = devices[index].max_width; cap->maxheight = devices[index].max_height; - break; + + done: + free(cap2); + break; } case VIDI