]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ttm/tests: fix incorrect assert in ttm_bo_unreserve_bulk()
authorQasim Ijaz <qasdev00@gmail.com>
Thu, 13 Mar 2025 16:14:24 +0000 (16:14 +0000)
committerChristian König <christian.koenig@amd.com>
Fri, 14 Mar 2025 06:54:39 +0000 (07:54 +0100)
commit878516a9e62cd220379e511d43dcf58df3a6ca9f
treeb08aba3ee707f0adacd47dad3a46079567648966
parentdbe74119ff71c00f2d863a32f72aab2d15e61c39
drm/ttm/tests: fix incorrect assert in ttm_bo_unreserve_bulk()

In the ttm_bo_unreserve_bulk() test function, resv is allocated using
kunit_kzalloc(), but the subsequent assertion mistakenly verifies the
ttm_dev pointer instead of the resv pointer.

Fix the assertion to properly verify the resv pointer.

Signed-off-by: Qasim Ijaz <qasdev00@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250313161424.10688-1-qasdev00@gmail.com
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/ttm/tests/ttm_bo_test.c