From f7e52078ce2994fc2fad8d9680e4881fcc2048fa Mon Sep 17 00:00:00 2001 From: Xiaoliang Pang Date: Thu, 17 Sep 2020 05:44:51 +0200 Subject: [PATCH] media: atomisp:pci/runtime/queue: modify the return error value modify the return error value is -EDOM Fixes: 2cac05dee6e30("drm/amd/powerplay: add the hw manager for vega12 (v4)") Cc: Evan Quan Signed-off-by: Xiaoliang Pang Reviewed-by: Tianjia Zhang Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/media/atomisp/pci/runtime/queue/src/queue_access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/atomisp/pci/runtime/queue/src/queue_access.c b/drivers/staging/media/atomisp/pci/runtime/queue/src/queue_access.c index fdca743..424e7a1 100644 --- a/drivers/staging/media/atomisp/pci/runtime/queue/src/queue_access.c +++ b/drivers/staging/media/atomisp/pci/runtime/queue/src/queue_access.c @@ -44,7 +44,7 @@ int ia_css_queue_load( the value as zero. This causes division by 0 exception as the size is used in a modular division operation. */ - return EDOM; + return -EDOM; } } -- 2.7.4