drm/sun4i: Check return value of drm_vblank_init
authorChen-Yu Tsai <wens@csie.org>
Fri, 17 Feb 2017 03:13:26 +0000 (11:13 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 7 Mar 2017 21:15:15 +0000 (22:15 +0100)
commit92b300c4e6f7f6fc22e1cc02d7c07627769a6339
treeed7768931cfe0849098195ca14a819a2e35d91b6
parent9d56defb44b15427f4342c543a70fb7886fc06f5
drm/sun4i: Check return value of drm_vblank_init

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 <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_drv.c