drm/sun4i: mixer: Fix layer init code
Subsystems (5)
DRM drivers DRM misc Arm/Allwinner sunXi SoC support DRM drivers for Allwinner A10 +1 more subsystems
Jernej Skrabec
maintainerPATCH 1/1 drm/sun4i: mixer: Fix layer init code
Code refactoring dropped extra NULL sentinel entry at the end of the drm planes array.
Add it back.
Reported-by Chen-Yu Tsai <[email protected]>
Closes https://lore.kernel.org/linux-sunxi/CAGb2v65wY2pF6sR+0JgnpLa4ysvjght5hAKDa1RUyo=zEKXreg@mail.gmail.com/ open here
Fixes 5fd711adc0ba ("drm/sun4i: layer: move num of planes calc out of layer code")
Signed-off-by Jernej Skrabec <[email protected]>
--- drivers/gpu/drm/sun4i/sun8i_mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/sun4i/sun8i_mixer.c +1 -1
@@ -321,7 +321,7 @@ static struct drm_plane **sun8i_layers_init(struct drm_device *drm,unsigned int phy_index;int i; - planes =devm_kcalloc (drm->dev, plane_cnt,sizeof (*planes),GFP_KERNEL ); + planes =devm_kcalloc (drm->dev, plane_cnt +1 ,sizeof (*planes),GFP_KERNEL );if (!planes)return ERR_PTR (-ENOMEM );
Signature · 1 line
2.53.0
Quoted 11 lines · Jernej Skrabec
Code refactoring dropped extra NULL sentinel entry at the end of the drm planes array.
Add it back.
Reported-by Chen-Yu Tsai <[email protected]>Closes https://lore.kernel.org/linux-sunxi/CAGb2v65wY2pF6sR+0JgnpLa4ysvjght5hAKDa1RUyo=zEKXreg@mail.gmail.com/ open hereFixes 5fd711adc0ba ("drm/sun4i: layer: move num of planes calc out of layer code")Signed-off-by Jernej Skrabec <[email protected]>---
Reviewed-by Chen-Yu Tsai <[email protected]>
Quoted 6 lines · Jernej Skrabec
Code refactoring dropped extra NULL sentinel entry at the end of the drm planes array.
Add it back.
Applied to drm-misc-next in drm-misc, thanks!
[1/1] drm/sun4i: mixer: Fix layer init code
commit: 744629904c68bde847c31819f23482d09152f810
Best regards,
Signature · 1 line
Chen-Yu Tsai <[email protected]>