|
@@ -225,9 +225,10 @@ mdp5_plane_duplicate_state(struct drm_plane *plane)
|
|
|
|
|
|
mdp5_state = kmemdup(to_mdp5_plane_state(plane->state),
|
|
mdp5_state = kmemdup(to_mdp5_plane_state(plane->state),
|
|
sizeof(*mdp5_state), GFP_KERNEL);
|
|
sizeof(*mdp5_state), GFP_KERNEL);
|
|
|
|
+ if (!mdp5_state)
|
|
|
|
+ return NULL;
|
|
|
|
|
|
- if (mdp5_state && mdp5_state->base.fb)
|
|
|
|
- drm_framebuffer_reference(mdp5_state->base.fb);
|
|
|
|
|
|
+ __drm_atomic_helper_plane_duplicate_state(plane, &mdp5_state->base);
|
|
|
|
|
|
return &mdp5_state->base;
|
|
return &mdp5_state->base;
|
|
}
|
|
}
|