drm/selftests: missing error code in igt_buddy_alloc_smoke()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 7 Mar 2022 12:54:58 +0000 (15:54 +0300)
committerChristian König <christian.koenig@amd.com>
Mon, 7 Mar 2022 16:07:54 +0000 (17:07 +0100)
commit016d1ca3f6ad05676fd9e418715ddce1f4ab5a73
tree31b03a39360215cacff481b4c9a94aafad5537a8
parentf6e68388443ff50088e224b3a75090bdc0403be6
drm/selftests: missing error code in igt_buddy_alloc_smoke()

Set the error code to -ENOMEM if drm_random_order() fails.

Fixes: e6ff5ef81170 ("drm/selftests: add drm buddy smoke testcase")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Arunpravin <Arunpravin.PaneerSelvam@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220307125458.GA16710@kili
drivers/gpu/drm/selftests/test-drm_buddy.c