]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: tv: Check mode pointer
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 19 Sep 2016 20:17:51 +0000 (22:17 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 22 Sep 2016 07:13:08 +0000 (10:13 +0300)
commite4192089fe5320537fd88aa29721277efef64af4
treed4b88d9c1104621d815bb6725c150974668d3b10
parentc222f399045de480d4af0b9e4cdfff1a083e3e1d
drm/sun4i: tv: Check mode pointer

The drm_mode_create call might return NULL in case of a failure, and the
current code doesn't check for that. Make sure it does.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_tv.c