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
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
}
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
ht = devices[index].min_height;
cap->maxwidth = devices[index].max_width;
cap->maxheight = devices[index].max_height;
- break;
+
+ done:
+ free(cap2);
+ break;
}
case VIDI