From: Hans de Goede <hdegoede@redhat.com>
To: elezegarcia@gmail.com
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>, linux-media@vger.kernel.org
Subject: Re: [PATCH 2/4] pwc: Add return code check at vb2_queue_init()
Date: Mon, 24 Sep 2012 16:16:06 +0200 [thread overview]
Message-ID: <50606B26.6020406@redhat.com> (raw)
In-Reply-To: <1347889658-15116-1-git-send-email-elezegarcia@gmail.com>
Hi,
Thanks I've added this to my media tree and it will be included in
my next pull-req to Mauro.
Regards,
Hans
On 09/17/2012 03:47 PM, elezegarcia@gmail.com wrote:
> From: Ezequiel Garcia <elezegarcia@gmail.com>
>
> This function returns an integer and it's mandatory
> to check the return code.
>
> Cc: Hans de Goede <hdegoede@redhat.com>
> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
> ---
> drivers/media/usb/pwc/pwc-if.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/media/usb/pwc/pwc-if.c b/drivers/media/usb/pwc/pwc-if.c
> index 42e36ba..31d082e 100644
> --- a/drivers/media/usb/pwc/pwc-if.c
> +++ b/drivers/media/usb/pwc/pwc-if.c
> @@ -1000,7 +1000,9 @@ static int usb_pwc_probe(struct usb_interface *intf, const struct usb_device_id
> pdev->vb_queue.buf_struct_size = sizeof(struct pwc_frame_buf);
> pdev->vb_queue.ops = &pwc_vb_queue_ops;
> pdev->vb_queue.mem_ops = &vb2_vmalloc_memops;
> - vb2_queue_init(&pdev->vb_queue);
> + rc = vb2_queue_init(&pdev->vb_queue);
> + if (rc)
> + goto err_free_mem;
>
> /* Init video_device structure */
> memcpy(&pdev->vdev, &pwc_template, sizeof(pwc_template));
>
prev parent reply other threads:[~2012-09-24 14:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-17 13:47 [PATCH 2/4] pwc: Add return code check at vb2_queue_init() elezegarcia
2012-09-24 14:16 ` Hans de Goede [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50606B26.6020406@redhat.com \
--to=hdegoede@redhat.com \
--cc=elezegarcia@gmail.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.