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: fix two S_EDID tests Author: Hans Verkuil <[email protected]> Date: Thu Dec 10 14:23:07 2020 +0100 The final two S_EDID tests check what happens if the edid pointer is NULL or 0x0eadbeef, but if no EDID is loaded when v4l2-compliance is run, then 'blocks' is 0, and in that case the edid pointer is ignored (S_EDID is interpreted as 'clear the EDID' in that case). So set 'blocks' to 1 instead to ensure that these two tests actually use the edid pointer and so return EFAULT. Signed-off-by: Hans Verkuil <[email protected]> utils/v4l2-compliance/v4l2-test-io-config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=e0e4114f971407acfdf1e8173c86e2e08fa01077 diff --git a/utils/v4l2-compliance/v4l2-test-io-config.cpp b/utils/v4l2-compliance/v4l2-test-io-config.cpp index 677a3ac534dc..6f2a9ba946c2 100644 --- a/utils/v4l2-compliance/v4l2-test-io-config.cpp +++ b/utils/v4l2-compliance/v4l2-test-io-config.cpp @@ -577,7 +577,7 @@ static int checkEdid(struct node *node, unsigned pad, bool is_input) fail_on_test(edid.blocks == 0 || edid.blocks >= 256); fail_on_test(edid.pad != pad); } - edid.blocks = blocks; + edid.blocks = 1; edid.pad = pad; edid.edid = nullptr; ret = doioctl(node, VIDIOC_S_EDID, &edid); _______________________________________________ linuxtv-commits mailing list [email protected] https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
