Am 22.06.21 um 18:55 schrieb Daniel Vetter:
Spotted while trying to convert panfrost to these.

Signed-off-by: Daniel Vetter <[email protected]>
Cc: "Christian König" <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
---
  drivers/gpu/drm/drm_gem.c | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
index ba2e64ed8b47..68deb1de8235 100644
--- a/drivers/gpu/drm/drm_gem.c
+++ b/drivers/gpu/drm/drm_gem.c
@@ -1302,6 +1302,9 @@ EXPORT_SYMBOL(drm_gem_unlock_reservations);
   * @fence_array: array of dma_fence * for the job to block on.
   * @fence: the dma_fence to add to the list of dependencies.
   *
+ * This functions consumes the reference for @fence both on success and error
+ * cases.
+ *

Oh, the later is a bit ugly I think. But good to know.

Reviewed-by: Christian König <[email protected]>

   * Returns:
   * 0 on success, or an error on failing to expand the array.
   */

Reply via email to