diff options
| author | Dave Airlie <[email protected]> | 2022-10-20 23:56:07 +0000 |
|---|---|---|
| committer | Dave Airlie <[email protected]> | 2022-10-20 23:56:14 +0000 |
| commit | cbc543c59e8e7c8bc8604d6ac3e18a029e3d5118 (patch) | |
| tree | 1acc5f6dc68d4ff19d34e4a030456335e92b00aa /drivers/gpu/drm/tests/drm_format_helper_test.c | |
| parent | Merge tag 'amd-drm-fixes-6.1-2022-10-20' of https://gitlab.freedesktop.org/ag... (diff) | |
| parent | drm/panfrost: replace endian-specific types with native ones (diff) | |
| download | kernel-cbc543c59e8e7c8bc8604d6ac3e18a029e3d5118.tar.gz kernel-cbc543c59e8e7c8bc8604d6ac3e18a029e3d5118.zip | |
Merge tag 'drm-misc-fixes-2022-10-20' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
drm-misc-fixes for v6.1-rc2:
- Fix a buffer overflow in format_helper_test.
- Set DDC pointer in drmm_connector_init.
- Compiler fixes for panfrost.
Signed-off-by: Dave Airlie <[email protected]>
From: Maarten Lankhorst <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/tests/drm_format_helper_test.c')
| -rw-r--r-- | drivers/gpu/drm/tests/drm_format_helper_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tests/drm_format_helper_test.c b/drivers/gpu/drm/tests/drm_format_helper_test.c index 8d86c250c2ec..2191e57f2297 100644 --- a/drivers/gpu/drm/tests/drm_format_helper_test.c +++ b/drivers/gpu/drm/tests/drm_format_helper_test.c @@ -438,7 +438,7 @@ static void drm_test_fb_xrgb8888_to_xrgb2101010(struct kunit *test) iosys_map_set_vaddr(&src, xrgb8888); drm_fb_xrgb8888_to_xrgb2101010(&dst, &result->dst_pitch, &src, &fb, ¶ms->clip); - buf = le32buf_to_cpu(test, buf, TEST_BUF_SIZE); + buf = le32buf_to_cpu(test, buf, dst_size / sizeof(u32)); KUNIT_EXPECT_EQ(test, memcmp(buf, result->expected, dst_size), 0); } |
