From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org, hans.verkuil@cisco.com
Subject: Re: [RFC/PATCH] v4l2-compliance: Reject invalid ioctl error codes
Date: Mon, 24 Dec 2012 13:30:30 +0100 [thread overview]
Message-ID: <1951365.pbMKjqvrx2@avalon> (raw)
In-Reply-To: <201212241024.48384.hverkuil@xs4all.nl>
Hi Hans,
On Monday 24 December 2012 10:24:48 Hans Verkuil wrote:
> On Sun December 23 2012 23:24:04 Laurent Pinchart wrote:
> > The recent uvcvideo regression that broke pulseaudio/KDE (see commit
> > 9c016d61097cc39427a2f5025bdd97ac633d26a6 in the mainline kernel) was
> > caused by the uvcvideo driver returning a -ENOENT error code to
> > userspace by mistake.
> >
> > To make sure such regressions will be caught before reaching users, test
> > ioctl error codes to make sure they're valid.
>
> I don't like this change. Error codes should be checked in the test for
> the actual ioctl.
>
> Apparently it is QUERYCTRL that is returning the wrong error code in uvc,
> but looking at the code in v4l2-test-controls.cpp it is already checking
> for ENOTTY or EINVAL and returning a failure if it is a different error
> code. So why is that not triggered in this case?
I've just checked that, the missing control class issue made the control tests
stop early before hitting the wrong return value. I guess that's a good reason
to fix *all* compliance errors...
We can drop this patch.
--
Regards,
Laurent Pinchart
prev parent reply other threads:[~2012-12-24 12:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-23 22:24 [RFC/PATCH] v4l2-compliance: Reject invalid ioctl error codes Laurent Pinchart
2012-12-24 9:24 ` Hans Verkuil
2012-12-24 12:30 ` Laurent Pinchart [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=1951365.pbMKjqvrx2@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=hans.verkuil@cisco.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).