[igt-dev] [i-g-t] tests/kms_content_protection: Initialize fb height width to 0
Tejas Upadhyay
tejaskumarx.surendrakumar.upadhyay at intel.com
Thu Mar 18 11:53:20 UTC 2021
While requesting for framebuffer height and width should be in
kernel expected limit. As the test is not initializing height
and width to 0 garbage framebuffer size is getting requested and
fails. Addressed same, initalizing height and width to 0.
Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay at intel.com>
---
tests/kms_content_protection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
index 0c2173fb..9cd33b87 100644
--- a/tests/kms_content_protection.c
+++ b/tests/kms_content_protection.c
@@ -707,7 +707,7 @@ static void test_content_protection_cleanup(void)
static void create_fbs(void)
{
igt_output_t *output;
- int width, height;
+ int width = 0, height = 0;
drmModeModeInfo *mode;
for_each_connected_output(&data.display, output) {
--
2.30.0
More information about the igt-dev
mailing list