diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/gpu/drm/drm_damage_helper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_damage_helper.c b/drivers/gpu/drm/drm_damage_helper.c index d2a1c7372f36..31032407254d 100644 --- a/drivers/gpu/drm/drm_damage_helper.c +++ b/drivers/gpu/drm/drm_damage_helper.c | |||
| @@ -178,7 +178,7 @@ int drm_atomic_helper_dirtyfb(struct drm_framebuffer *fb, | |||
| 178 | state = drm_atomic_state_alloc(fb->dev); | 178 | state = drm_atomic_state_alloc(fb->dev); |
| 179 | if (!state) { | 179 | if (!state) { |
| 180 | ret = -ENOMEM; | 180 | ret = -ENOMEM; |
| 181 | goto out; | 181 | goto out_drop_locks; |
| 182 | } | 182 | } |
| 183 | state->acquire_ctx = &ctx; | 183 | state->acquire_ctx = &ctx; |
| 184 | 184 | ||
| @@ -238,6 +238,7 @@ out: | |||
| 238 | kfree(rects); | 238 | kfree(rects); |
| 239 | drm_atomic_state_put(state); | 239 | drm_atomic_state_put(state); |
| 240 | 240 | ||
| 241 | out_drop_locks: | ||
| 241 | drm_modeset_drop_locks(&ctx); | 242 | drm_modeset_drop_locks(&ctx); |
| 242 | drm_modeset_acquire_fini(&ctx); | 243 | drm_modeset_acquire_fini(&ctx); |
| 243 | 244 | ||
