Re: [PATCH 6/7] drm/sun4i: Save newly created layer in layers array in sun4i_layers_init

2017-02-21 Thread Maxime Ripard
On Fri, Feb 17, 2017 at 11:13:29AM +0800, Chen-Yu Tsai wrote: > sun4i_layers_init allocates an array to store pointers to newly created > layers returned by sun4i_layer_init_one(), but fails to actually store > them. But it actually returns the empty array to unsuspecting users. > > Save the

[PATCH 6/7] drm/sun4i: Save newly created layer in layers array in sun4i_layers_init

2017-02-17 Thread Chen-Yu Tsai
sun4i_layers_init allocates an array to store pointers to newly created layers returned by sun4i_layer_init_one(), but fails to actually store them. But it actually returns the empty array to unsuspecting users. Save the pointers in the array, so that they may be used later. Signed-off-by: