|
@@ -299,18 +299,17 @@ static const struct drm_plane_helper_funcs rcar_du_vsp_plane_helper_funcs = {
|
|
|
static struct drm_plane_state *
|
|
|
rcar_du_vsp_plane_atomic_duplicate_state(struct drm_plane *plane)
|
|
|
{
|
|
|
- struct rcar_du_vsp_plane_state *state;
|
|
|
struct rcar_du_vsp_plane_state *copy;
|
|
|
|
|
|
if (WARN_ON(!plane->state))
|
|
|
return NULL;
|
|
|
|
|
|
- state = to_rcar_vsp_plane_state(plane->state);
|
|
|
- copy = kmemdup(state, sizeof(*state), GFP_KERNEL);
|
|
|
+ copy = kzalloc(sizeof(*copy), GFP_KERNEL);
|
|
|
if (copy == NULL)
|
|
|
return NULL;
|
|
|
|
|
|
__drm_atomic_helper_plane_duplicate_state(plane, ©->state);
|
|
|
+ copy->alpha = to_rcar_vsp_plane_state(plane->state)->alpha;
|
|
|
|
|
|
return ©->state;
|
|
|
}
|