Re: [PATCH 3/7] drm/sun4i: Check return value of drm_vblank_init

2017-02-21 Thread Maxime Ripard
On Fri, Feb 17, 2017 at 11:13:26AM +0800, Chen-Yu Tsai wrote: > drm_vblank_init can fail due to insufficient memory. Ignoring the error > and proceeding may cause the kernel to dereference an invalid pointer > when vblank is enabled. > > Signed-off-by: Chen-Yu Tsai Applied,

[PATCH 3/7] drm/sun4i: Check return value of drm_vblank_init

2017-02-17 Thread Chen-Yu Tsai
drm_vblank_init can fail due to insufficient memory. Ignoring the error and proceeding may cause the kernel to dereference an invalid pointer when vblank is enabled. Signed-off-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_drv.c | 6 +- 1 file changed, 5 insertions(+), 1