From: jsg Date: Thu, 18 Aug 2022 00:38:21 +0000 (+0000) Subject: drm/gem: Properly annotate WW context on drm_gem_lock_reservations() error X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8534e9cf85766c5c149d518859623cfc97f9956e;p=openbsd drm/gem: Properly annotate WW context on drm_gem_lock_reservations() error From Dmitry Osipenko da2a1aa058acd7eb2cccd9de74df0809cbe4f1f8 in linux 5.15.y/5.15.61 2939deac1fa220bc82b89235f146df1d9b52e876 in mainline linux --- diff --git a/sys/dev/pci/drm/drm_gem.c b/sys/dev/pci/drm/drm_gem.c index 8591b6da6ba..b6b4999ed3a 100644 --- a/sys/dev/pci/drm/drm_gem.c +++ b/sys/dev/pci/drm/drm_gem.c @@ -1533,7 +1533,7 @@ retry: ret = dma_resv_lock_slow_interruptible(obj->resv, acquire_ctx); if (ret) { - ww_acquire_done(acquire_ctx); + ww_acquire_fini(acquire_ctx); return ret; } } @@ -1558,7 +1558,7 @@ retry: goto retry; } - ww_acquire_done(acquire_ctx); + ww_acquire_fini(acquire_ctx); return ret; } }