This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: v4l2-compliance: improve checkFunction
Author:  Hans Verkuil <hans.verk...@cisco.com>
Date:    Thu Feb 8 14:08:44 2018 +0100

The MEDIA_ENT_T_DEVNODE range check didn't take MEDIA_ENT_T_DEVNODE_UNKNOWN
into account. Also, MEDIA_ENT_T_DEVNODE is not supposed to be used.

Signed-off-by: Hans Verkuil <hans.verk...@cisco.com>

 utils/v4l2-compliance/v4l2-test-media.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=8d3d6144a42f25874da4ac241ecfe989f49e9107
diff --git a/utils/v4l2-compliance/v4l2-test-media.cpp 
b/utils/v4l2-compliance/v4l2-test-media.cpp
index 5b65915d0222..b127a1c7577e 100644
--- a/utils/v4l2-compliance/v4l2-test-media.cpp
+++ b/utils/v4l2-compliance/v4l2-test-media.cpp
@@ -85,7 +85,8 @@ static int checkFunction(__u32 function, bool v2_api)
 {
        fail_on_test(function == MEDIA_ENT_F_UNKNOWN);
        fail_on_test((function & MEDIA_ENT_TYPE_MASK) == MEDIA_ENT_F_OLD_BASE &&
-                    function > MEDIA_ENT_T_DEVNODE_DVB);
+                    (function == MEDIA_ENT_T_DEVNODE ||
+                     (function > MEDIA_ENT_T_DEVNODE_DVB && function < 
MEDIA_ENT_T_DEVNODE_UNKNOWN)));
        fail_on_test((function & MEDIA_ENT_TYPE_MASK) == 
MEDIA_ENT_F_OLD_SUBDEV_BASE &&
                     function > MEDIA_ENT_F_TUNER);
        if (!v2_api)

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to