Skip to contentSkip to conversation

atomisp:pci/runtime/queue: modify the return error value

PATCH In review Xiaoliang Pang 2 participants 2 messages Sep 17, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 <[email protected]>
---
 .../staging/media/atomisp/pci/runtime/queue/src/queue_access.c  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/atomisp/pci/runtime/queue/src/queue_access.c +1 -1
index fdca743c4ab7..424e7a15a389 100644
@@ -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;
 			}
 		}
 
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

LGTM.

Quoted 23 lines · Xiaoliang Pang

modify the return error value is -EDOM

Fixes 2cac05dee6e30("drm/amd/powerplay: add the hw manager for vega12 (v4)")
Cc Evan Quan <[email protected]>
---
  .../staging/media/atomisp/pci/runtime/queue/src/queue_access.c  | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/atomisp/pci/runtime/queue/src/queue_access.c +1 -1
index fdca743c4ab7..424e7a15a389 100644
@@ -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;
  			}
  		}